lovr.headset.getVelocity
Returns 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.
|
See also
lovr.headset.getAngularVelocity
lovr.headset.getPose
lovr.headset.getPosition
lovr.headset.getOrientation
lovr.headset