Protected
__targetGets whether default behavior is prevented on events.
True if default is prevented, false otherwise
Sets whether to prevent default behavior on events.
True to prevent default, false otherwise
Gets the dolly (zoom) value with gamma correction.
The dolly value (0-1)
Sets the dolly (zoom) value with gamma correction.
The dolly value (0-1)
Gets whether the mouse is currently pressed down.
True if mouse is down, false otherwise
Gets the timestamp of the last mouse down event.
The timestamp in milliseconds
Gets the timestamp of the last mouse up event.
The timestamp in milliseconds
Sets the maximum Y rotation angle limit.
The maximum Y rotation angle
Sets the minimum Y rotation angle limit.
The minimum Y rotation angle
Gets the X-axis rotation value.
The rotation value in degrees
Sets the X-axis rotation value.
The rotation value in degrees
Gets the Y-axis rotation value.
The rotation value in degrees
Sets the Y-axis rotation value.
The rotation value in degrees
Gets the scale factor for zNear and zFar calculations.
The scale factor
Sets the scale factor for zNear and zFar calculations.
The scale factor
Gets the current update count.
The current update count
Internal
Gets the field of view Y value from the camera component.
The camera component
The fovy value in degrees
Internal
Controls parallel translation based on mouse/touch movement.
Original X position
Original Y position
Current X position
Current Y position
Internal
Updates the camera component with new calculated values.
The camera component to update
Internal
update center, eye and up vectors of OrbitCameraController
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 target entities.
Array of target entities
Main logic method that updates the camera based on controller state.
The camera component to update
Sets a single target entity for the camera to focus on.
The entity to set as target
Sets multiple target entities for the camera to focus on.
Array of entities to set as targets
OrbitCameraController is a camera controller that allows the user to orbit around a target.