new CameraManager()
Creates new camera manager that uses device configurations as input.
- Source:
Methods
getGlobalPosition() → {Ayce.Vector3}
Returns current global camera position.
- Source:
Returns:
position
- Type
- Ayce.Vector3
getGlobalRotation() → {Ayce.Quaternion}
Returns current global camera orientation.
- Source:
Returns:
orientation
- Type
- Ayce.Quaternion
isInputVR() → {Boolean}
Returns true if WebVR is being used. Not necessarily the case for Cardboard websites.
- Source:
Returns:
isVR
- Type
- Boolean
update()
Updates position and orientation variables based on all added input methods.
- Source:
(inner) initHMDControls(hmdData)
Sets up HMD input for the Oculus Rift.
Parameters:
Name | Type | Description |
---|---|---|
hmdData |
Object |
- Source: