ReadonlyactiveThe unique type identifier of the active strategy.
The aspect ratio (width / height).
The behaviors attached to this camera.
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 active projection (e.g., Perspective, Orthographic).
ReadonlystrategyThe currently active camera control strategy.
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 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 its type.
The type of effect.
Optionalintensity: numberThe intensity factor.
Optionalduration: numberThe 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: CameraConstraintsThe 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.
OptionaldeltaTime: numberElapsed 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.
Interface representing the core data and API of a camera.