orientation 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 orientation property represents the orientation of a sensor as a quaternion.
This property is read-only.
Syntax
JavaScript |
---|
orientation = object.orientation |
Property values
Type: Float32Array
Remarks
The orientation yaw (rotation around the Y axis) is relative to the initial yaw of the sensor when it was first read or the yaw of the sensor at the point that resetPose was last called.
The value may be null
if the sensor is incapable of providing orientation data.
When not null, the orientation property will be an array of four elements which represent the coefficients of the quaternion.
An orientation of [0, 0, 0, 1] is considered to be "forward".