lovr.audio.setOrientation

Edit

Sets the orientation of the virtual audio listener in angle/axis representation.



Set the listener orientation using numbers.

Arguments

NameTypeDescription
anglenumber The number of radians the listener should be rotated around its rotation axis.
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 listener orientation using a vector.

Arguments

NameTypeDescription
orientationQuat The orientation of the listener.

Returns

Nothing

See also