BaseVRCameraRigSystem

BaseVRCameraRigSystem

new BaseVRCameraRigSystem(vrCanvasDom, systemName, interestTypes)

Parameters:
Name Type Description
vrCanvasDom dom

Dom used to render vr.

systemName String

Name of the system being created.

interestTypes Array.<String>

Array of interest component names.

Methods

deleted()

Called when a componenet is deleted

hasExternalDisplay() → {boolean}

Identify if the currentDisplay has externalDisplay.

inserted()

Called when a new componenet is inserted

onPreRender()

Override function.
Called before the scene is being rendered

setup(world)

Override function.
Called when the system is added to the world.
This method is called automatically when the system is added to a world.
By default it will go through all entities
accounted by the entity manager and try to add them to this system.

Parameters:
Name Type Description
world World

startVR()

Called to start presenting VR.

stopVR()

Called to stop presenting VR.

submitFrame()

Called after the scene is being rendered
only submit VR frame if this update pass was triggered by the VR
display's requestAnimationFrame and we are still presenting.