lovr.headset.getAngularVelocity

Edit

Returns the current angular velocity of a device.

x, y, z = lovr.headset.getAngularVelocity(device)

Arguments

NameTypeDefaultDescription
deviceDevice'head' The device to get the velocity of.

Returns

NameTypeDescription
xnumber The x component of the angular velocity.
ynumber The y component of the angular velocity.
znumber The z component of the angular velocity.

Notes

If the device isn't tracked, all zeroes will be returned.

See also