Helps to quickly add VR support to an existing scene. See http://doc.babylonjs.com/how_to/webvr_helper
Based on the current WebVR support, returns the current VR camera used.
The deviceOrientationCamera used as the camera when not in VR.
Sets if the ray of the gaze should be displayed.
Sets if the ray of the LaserPointer should be displayed.
The mesh used to display where the user is selecting, this mesh will be cloned and set as the gazeTracker for the left and right controller when set bakeCurrentTransformIntoVertices will be called on the mesh. See http://doc.babylonjs.com/resources/baking_transformations
Gets a value indicating if we are currently in VR mode.
The gaze tracking mesh corresponding to the left controller
To be optionaly changed by user to define custom selection logic (after ray selection)
Observable raised after camera teleportation
Observable raised before camera teleportation
Return this.onControllerMeshLoadedObservable Note: This one is for backward compatibility. Please use onControllerMeshLoadedObservable directly
Observable raised when controller mesh is loaded.
Return this.onEnteringVRObservable Note: This one is for backward compatibility. Please use onEnteringVRObservable directly
Observable raised when entering VR.
Return this.onExitingVRObservable Note: This one is for backward compatibility. Please use onExitingVRObservable directly
Observable raised when exiting VR.
Observable raised when a new mesh is picked based on meshSelectionPredicate
Observable raised when a new mesh is selected based on meshSelectionPredicate
Observable raised when current selected mesh gets unselected
Sets the position of the vr experience helper.
To be optionaly changed by user to define custom ray selection
The gaze tracking mesh corresponding to the right controller
Set teleportation enabled. If set to false camera teleportation will be disabled but camera rotation will be kept.
Sets the mesh to be used to display where the user is going to teleport.
If the gaze trackers scale should be updated to be constant size when pointing at near/far meshes
The deviceOrientationCamera that is used as a fallback when vr device is not connected.
The webVRCamera which is used when in VR.
Options to modify the vr experience helper's behavior.
Adds a floor mesh to be used for teleportation.
the mesh to be used for teleportation.
Sets the color of the ray from the vr headsets gaze.
new color for the ray.
Sets the color of the laser ray from the vr controllers.
new color for the ray.
Exits VR and disposes of the vr experience helper
Enables controllers and user interactions such as selecting and object or clicking on an object.
Enables interactions and teleportation using the VR controllers and gaze.
options to modify teleportation behavior.
Attempt to enter VR. If a headset is connected and ready, will request present on that. Otherwise, will use the fullscreen API.
Attempt to exit VR, or fullscreen.
Gets the name of the VRExperienceHelper class
Removes a floor mesh from being used for teleportation.
the mesh to be removed.
Teleports the users feet to the desired location
The location where the user's feet should be placed
Generated using TypeDoc