lovr.headset.getVelocity
EditReturns the current linear velocity of a device, in meters per second.
vx, vy, vz = lovr.headset.getVelocity(device)Arguments
| Name | Type | Default | Description |
| device | Device | 'head' | The device to get the velocity of. |
Returns
| Name | Type | Description |
| vx | number | The x component of the linear velocity. |
| vy | number | The y component of the linear velocity. |
| vz | number | The z component of the linear velocity. |
Notes
If the device isn't tracked, all zeroes will be returned.