Share via


position 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 position property represents the position of the VRDisplay as a 3D vector given in meters from an origin point.

This property is read-only.

Syntax

JavaScript
pos = object.position

 

Property values

Type: Float32Array

Remarks

The origin point is either the position the sensor was first read at, or the position of the sensor when resetPose was last called.

The coordinate system uses the following axis definitions:

  • Positive X is to the user’s right.
  • Positive Y is up.
  • Positive Z is behind the user.

The position property may be null if the sensor is incapable of providing positional data.

See also

VRPose