new Camera(cameraManager)
Creates new camera object
Parameters:
Name | Type | Description |
---|---|---|
cameraManager |
Ayce.CameraManager |
- Source:
Methods
getEyeTranslation(eye) → {Number}
Returns x eye distance from center for respective eye
Parameters:
Name | Type | Description |
---|---|---|
eye |
String |
- Source:
Returns:
distance
- Type
- Number
getForwardVector() → {Ayce.Vector3}
Returns camera forvard vector
- Source:
Returns:
forwardVector
- Type
- Ayce.Vector3
getManager() → {Ayce.CameraManager}
Returns camera controller
- Source:
Returns:
cameraController
- Type
- Ayce.CameraManager
getPerspectiveMatrix(eye) → {Ayce.Matrix4}
Returns perspective matrix for respective eye
Parameters:
Name | Type | Description |
---|---|---|
eye |
String |
- Source:
Returns:
perspectiveMatrix
- Type
- Ayce.Matrix4
getViewMatrix() → {Ayce.Matrix4}
Returns view matrix for respective eye
- Source:
Returns:
viewMatrix
- Type
- Ayce.Matrix4
setFullscreen(boolean)
Sets canvas to full screen
Parameters:
Name | Type | Description |
---|---|---|
boolean |
Boolean |
- Source:
update()
Updates camera
- Source:
updateProjectionMatrix()
Updates projection matrix
- Source:
(inner) calculateViewMatrix()
Calculates view matrices for both eyes
- Source: