Protected__Gets 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_Calculates 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_Calculates 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
Main logic method that updates the camera component based on input.
The camera component to update
Registers event listeners for mouse and keyboard input handling.
The DOM element to attach event listeners to, defaults to document
Resets the camera controller to its initial state.
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
Attempts to reset the controller state. Currently not implemented.
Unregisters all event listeners for this camera controller.
WalkThroughCameraController is a camera controller that allows the user to walk through a scene.