Source:setPose
Sets the position and orientation of the Source.
Source:setPose(x, y, z, angle, ax, ay, az)
Arguments
Name | Type | Description |
x | number | The x position of the Source, in meters. |
y | number | The y position of the Source, in meters. |
z | number | The z position of the Source, in meters. |
angle | number | The number of radians the Source is rotated around its axis of rotation. |
ax | number | The x component of the axis of rotation. |
ay | number | The y component of the axis of rotation. |
az | number | The z component of the axis of rotation. |
Returns
Nothing
See also
Source:setPosition
Source:setOrientation
lovr.audio.setPose
Source:getPose
Source