Freigeben über


linearAcceleration 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 linearAcceleration property represents the linear acceleration of the sensor given in meters per second squared.

This property is read-only.

Syntax

JavaScript
linearA = object.linearAcceleration

 

Property values

Type: Float32Array

Remarks

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

If the value isn't null, the linearAcceleration 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