lovr.headset.getAngularVelocity

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.

See also