lovr.audio.setPosition
EditSets 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
Name | Type | Description |
x | number | The x position of the listener. |
y | number | The y position of the listener. |
z | number | The z position of the listener. |
Returns
Nothing
Set the listener position using a vector.
Arguments
Name | Type | Description |
position | Vec3 | The listener position. |
Returns
Nothing