lovr.audio.setPosition

Edit

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



Set the listener position 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.

Returns

Nothing

Set the listener position using a vector.

Arguments

NameTypeDescription
positionVec3 The listener position.

Returns

Nothing

See also