lovr.headset.getPosition
EditReturns the current position of a device, in meters, relative to the play area.
x, y, z = lovr.headset.getPosition(device)Arguments
| Name | Type | Default | Description |
| device | Device | 'head' | The device to get the position of. |
Returns
| Name | Type | Description |
| x | number | The x position of the device. |
| y | number | The y position of the device. |
| z | number | The z position of the device. |
Notes
If the device isn't tracked, all zeroes will be returned.