Camera
API for manipulating the camera.
Functions
Camera.setViewTarget
Sets the target of the camera.
Camera.setViewTarget(position: vector, lookTarget: vector, upDirection?: vector)
Parameters
Name | Type | Default Value | Description |
---|---|---|---|
position | vector | Required | The position of the camera. |
lookTarget | vector | Required | The target to look at. |
upDirection | vector? | "Engine.WORLD_UP_DIRECTION" | The up direction of the camera. |
Camera.setViewDirection
Sets the direction of the camera.
Camera.setViewDirection(position: vector, direction: vector, upDirection?: vector)
Parameters
Name | Type | Default Value | Description |
---|---|---|---|
position | vector | Required | The position of the camera. |
direction | vector | Required | The direction of the camera. |
upDirection | vector? | "Engine.WORLD_UP_DIRECTION" | The up direction of the camera. |
Camera.setViewOrientation
Sets the orientation of the camera.
Camera.setViewOrientation(position: vector, orientation: Quaternion)
Parameters
Name | Type | Default Value | Description |
---|---|---|---|
position | vector | Required | The position of the camera. |
orientation | Quaternion | Required | The orientation of the camera. |