lovr.headset.getAngularVelocity

Returns the current angular velocity of a device.

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

Arguments

NameTypeDefaultDescription
deviceDeviceheadThe device to get the velocity of.

Returns

NameTypeDescription
xnumberThe x component of the angular velocity.
ynumberThe y component of the angular velocity.
znumberThe z component of the angular velocity.

See also