Protected
__targetGets all camera controller information for serialization.
Object containing all controller state information
Sets all camera controller information from serialized data.
Object or JSON string containing controller state information
Gets the current horizontal movement speed.
The current horizontal speed
Sets the horizontal movement speed.
The new horizontal speed value
Gets the current mouse wheel speed scale.
The current mouse wheel speed scale
Sets the mouse wheel speed scale.
The new mouse wheel speed scale
Gets the current update count.
The current update count
Gets the current vertical movement speed.
The current vertical speed
Sets the vertical movement speed.
The new vertical speed value
Protected
_calcZFarCalculates the far clipping plane (zFar) for the camera based on the near clipping plane and a scaling factor. This method is used when autoCalculateZNearAndZFar is enabled.
The camera component to update.
Protected
_calcZNearCalculates the near clipping plane (zNear) for the camera based on the target entities' bounding boxes. This method is used when autoCalculateZNearAndZFar is enabled and there are target entities.
The camera component to update.
The position of the camera's eye in world space.
The direction the camera is facing.
Gets the current camera direction.
The current direction vector or null if not available
Gets the current target entities.
Array of current target entities
Main logic method that updates the camera component based on input.
The camera component to update
Sets a single target entity for the camera to focus on.
The entity to set as the target
Sets multiple target entities for the camera to focus on. Automatically adjusts movement speeds based on the size of the targets.
Array of entities to set as targets
WalkThroughCameraController is a camera controller that allows the user to walk through a scene.