lovr.headset.getAngularVelocity
EditReturns the current angular velocity of a device.
x, y, z = lovr.headset.getAngularVelocity(device)
Arguments
Name | Type | Default | Description |
device | Device | 'head' | The device to get the velocity of. |
Returns
Name | Type | Description |
x | number | The x component of the angular velocity. |
y | number | The y component of the angular velocity. |
z | number | The z component of the angular velocity. |
Notes
If the device isn't tracked, all zeroes will be returned.