OculusRiftComponent Class
This component is responsible to add the VR support to Wanaplan.
Constructor
OculusRiftComponent
(
-
core
Parameters:
-
core
CoreThe main engine.
Item Index
Methods
Properties
Methods
compute
()
private
Recompute of the component.
destroy
()
Destructor.
disable
()
Disables the component
enable
()
Enables the component
getFloor
(
BABYLON.Mesh
-
[structure]
Gets the 3D mesh of the floor structure in parameter (by default current floor).
Parameters:
-
[structure]
FloorStructure optionalThe floor structure.
Returns:
BABYLON.Mesh:
The floor mesh in 3D.
initialize
()
Method called when Wanaplan is initialized.
You don't need to call this method manually.
onContextChanged
(
-
context
Method called when the context is switched (2D -> 3D or 3D -> 2D)
Parameters:
-
context
StringThe new context
start.
()
Start the VR view.
startListening
()
Calls all the event listeners.
stop
()
Stop the VR view.
stopListening
()
Removes all the event listeners.
update
(
-
deltaTime
Update the Y position and rotation of the camera.
Parameters:
-
deltaTime
NumberThe delta time.
Properties
keyboardManager
wnp.KeyboardManager
Instance of the Keyboard Manager (shortcut to wanaplan.keyboardManager).
structure
wnp.Structure
Instance of the structure (shortcut to wanaplan.structure).