lovr.audio.setPose

Sets the position and orientation of the virtual audio listener.

lovr.audio.setPose(x, y, z, angle, ax, ay, az)

Arguments

NameTypeDescription
xnumberThe x position of the listener, in meters.
ynumberThe y position of the listener, in meters.
znumberThe z position of the listener, in meters.
anglenumberThe number of radians the listener is rotated around its axis of rotation.
axnumberThe x component of the axis of rotation.
aynumberThe y component of the axis of rotation.
aznumberThe z component of the axis of rotation.

Returns

Nothing

Notes

The default implementation of lovr.run calls this function with the result of lovr.headset.getPose, so that the listener automatically tracks the headset.

See also