Share via


linearVelocity property

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

The linearVelocity property represents the linear velocity of the sensor given in meters per second.

This property is read-only.

Syntax

JavaScript
linearV = object.linearVelocity

 

Property values

Type: Float32Array

Remarks

The value may be null if the sensor is incapable of providing linear velocity.

If the value isn't null, the linearVelocity property will get the current velocity of the sensor along the x, y, and z axes. This means that the array will have three elements in it.

See also

VRPose