Camera
| Function | Description |
|---|---|
| Camera.new() | Creates a default camera |
Camera.new(Camera x) |
Creates a copy of camera x |
| Property | Type | Description |
|---|---|---|
| .position | Vector3D | Camera position |
| .rotation | Vector3D | Camera rotation |
| .viewPlanes | Vector2D | Near and far view planes |
| .orthogonal | bool | Is the Camera orthogonal |
| .fieldOfView | float | Set/get the field of view (degrees); for orthogonal cameras, .fieldOfView acts as a zoom scalar |
| .visible | bool | Set/get camera visibility |
| .aspectRatio | float | Camera aspect ratio |
| .up | Vector3D | Camera up vector |
| Function | Returns | Description |
|---|---|---|
| :getForward() | Vector3D | Returns the camera's forward direction |
| :getLeft() | Vector3D | Returns the camera's left direction |
| :getAbsolutePosition() | Vector3D | Returns the world position |
| :setActive() | Sets this camera as the active camera | |
:queue(bool legacy) |
Queues this camera to render on top of the active one; legacy determines if xEffects are used |
|
| :destroy() | Destroys the object |