lovr.headset.getPosition
EditReturns the current position of a device or model, in meters.
Arguments
| Name | Type | Default | Description |
| device | Device | 'head' | The device to locate. |
Returns
| Name | Type | Description |
| x | number | The x position. |
| y | number | The y position. |
| z | number | The z position. |
Arguments
| Name | Type | Description |
| model | Model | The model to locate. |
Returns
| Name | Type | Description |
| x | number | The x position. |
| y | number | The y position. |
| z | number | The z position. |
Notes
If the object isn't tracked, this function returns zeroes.