lovr.audio.setPose

Edit

Sets the position and orientation of the virtual audio listener.



Set the pose of the listener using numbers.

Arguments

NameTypeDescription
xnumber The x position of the listener.
ynumber The y position of the listener.
znumber The z position of the listener.
anglenumber The number of radians the listener is rotated around its axis of rotation.
axnumber The x component of the axis of rotation.
aynumber The y component of the axis of rotation.
aznumber The z component of the axis of rotation.

Returns

Nothing

Set the pose of the listener using vector types.

Arguments

NameTypeDescription
positionVec3 The position of the listener.
orientationQuat The orientation of the listener.

Returns

Nothing

Notes

The position of the listener doesn't use any specific units, but usually they can be thought of as meters to match the headset module.

See also