lovr.headset.getOrientation
EditReturns the current orientation of a device, in angle/axis form.
angle, ax, ay, az = lovr.headset.getOrientation(device)
Arguments
Name | Type | Default | Description |
device | Device | 'head' | The device to get the orientation of. |
Returns
Name | Type | Description |
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
If the device isn't tracked, all zeroes will be returned.