lovr.headset.getPose
EditReturns the current position and orientation of a device.
x, y, z, angle, ax, ay, az = lovr.headset.getPose(device)
Arguments
Name | Type | Default | Description |
device | Device | 'head' | The device to get the pose of. |
Returns
Name | Type | Description |
x | number | The x position. |
y | number | The y position. |
z | number | The z position. |
angle | number | The amount of rotation around the axis of rotation, in radians. |
ax | number | The x component of the axis of rotation. |
ay | number | The y component of the axis of rotation. |
az | number | The z component of the axis of rotation. |
Notes
Units are in meters.
If the device isn't tracked, all zeroes will be returned.