getFrameData method

The getFrameData property populates a VRFrameData object with the VRPose and view/projection matrices for the current frame.

Syntax

var retval = VRDisplay.getFrameData(frameData);

Parameters

frameData

Type: VRFrameData

Return value

Type: boolean

A boolean that is true if the VRFrameData is successfully updated.

Remarks

The populated values describe the position, orientation, acceleration, and velocity of the VRDisplay that should be used when rendering the next frame of a scene.

See also

VRDisplay

 

 

Show: