VRStageParameters Dictionary object

The VRStageParameters dictionary specifies the values describing the stage area for devices that support room-scale experiences.

Dictionary

Member Type Description
sittingToStandingTransform Float32Array A 16-element array containing the components of a 4x4 affine transformation matrix in column-major order. This matrix transforms the sitting-space view matrices of VRFrameData to standing-space.
sizeX float Width of the play-area bounds in meters. The bounds are defined as an axis-aligned rectangle on the floor. The center of the rectangle is at (0,0,0) in standing-space coordinates.
sizeY float Depth of the play-area bounds in meters. The bounds are defined as an axis-aligned rectangle on the floor. The center of the rectangle is at (0,0,0) in standing-space coordinates.

 

Remarks

Multiplying the standing-space matrix (created with the aid of the sittingToStandingTransform member) with the leftViewMatrix or rightViewMatrix will result in a standing-space view matrix for the respective eye.

For the sizeX and sizeY members, it's possible for the user to ignore the set bounds resulting in position values outside of the rectangle.

See also

stageParameters