lovr.headset.getVelocity

Returns the current linear velocity of a device, in meters per second.

vx, vy, vz = lovr.headset.getVelocity(device)

Arguments

NameTypeDefaultDescription
deviceDeviceheadThe device to get the velocity of.

Returns

NameTypeDescription
vxnumberThe x component of the linear velocity.
vynumberThe y component of the linear velocity.
vznumberThe z component of the linear velocity.

See also