Creates a new Camera.
The projection to use.
The behaviors attached to this camera.
Sub-pixel jitter offset (NDC units) for TAA, baked into viewProjectionMatrix for every
consumer rather than a separate matrix -- see docs/adr/0002-taa-jitter-shared-viewproj-matrix.md.
Horizontal rotation delta accumulated by behaviors.
Vertical rotation delta accumulated by behaviors.
The rotation angle around the X-axis (pitch).
The position of the camera in world space.
The target point the camera is looking at.
The rotation angle around the Y-axis (yaw).
The up vector of the camera (usually 0, 1, 0).
The unique type identifier of the active strategy.
The aspect ratio (width / height).
The aspect ratio (width / height).
The active projection (e.g., Perspective, Orthographic).
The active projection (e.g., Perspective, Orthographic).
The currently active camera control strategy.
The view matrix as a Float32Array.
The view matrix as a Matrix4 instance.
The combined view-projection matrix as a Float32Array.
The combined view-projection matrix as a Matrix4 instance.
Creates and adds a new effect by type.
The type of effect.
Optionalintensity: number
The intensity.
Optionalduration: number
The duration in seconds.
Removes a behavior from the camera.
The behavior to remove.
Maps screen coordinates (NDC -1 to 1) to world coordinates on the Y=0 plane.
Normalized X coordinate (-1 to 1).
Normalized Y coordinate (-1 to 1).
The world position on the Y=0 plane.
Sets or removes spatial constraints for the active strategy.
Optionalconstraints: CameraConstraints
The constraints to apply, or undefined to clear.
Switches the camera's control behavior.
The type of strategy to use.
Performs the movement and logic of the active strategy.
The target position to follow.
The horizontal rotation delta.
The vertical rotation delta.
Elapsed time since the last frame.
Recomputes the projection matrix.
Recomputes the view matrix and the combined view-projection matrix.
Adjusts the zoom level (radius, FOV, or orthographic bounds).
The zoom delta.
Standard implementation of the CameraInterfaceData.