File: Camera.md | Updated: 11/15/2025
Abstract base class for cameras. This class should always be inherited when you build a new camera.
Constructs a new camera.
The coordinate system in which the camera is used.
This flag can be used for type testing.
Default is true.
The inverse of the camera's world matrix.
The camera's projection matrix.
The inverse of the camera's projection matrix.
The flag that indicates whether the camera uses a reversed depth buffer.
Default is false.
Returns a vector representing the ("look") direction of the 3D object in world space.
This method is overwritten since cameras have a different forward vector compared to other 3D objects. A camera looks down its local, negative z-axis by default.
target | The target vector the result is stored to.
---|---
Overrides: Object3D#getWorldDirection
Returns: The 3D object's direction in world space.