Share via


renderHeight property

The offset property represents a three component vector that specifies the offset from the center point between the users' eyes to the center of the eye in meters.

This property is read-only.

Syntax

JavaScript
offset = object.renderHeight

 

Property values

Type: Float32Array

Remarks

The offset property is a three element array.

The x component of this vector represent half of the user’s interpupillary distance (IPD). It can also represent the vector from the center point of the headset to the center point of the lens for the given eye.

The x component value for the left eye is negative; The right eye x component is positive.

Use the view matrices provided in VRFrameData to construct a view matrix instead of offset.

See also

VREyeParameters