Protected__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 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 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
calculate up, eye, center and tangent vector with controller influence
Internal
Handles context menu events.
The context menu event
Internal
Gets the field of view Y value from the camera component.
The camera component
The fovy value in degrees
Internal
Calculates the distance between two touch points.
The touch event
The distance between touch points
Internal
Handles mouse double-click events for resetting camera state.
The mouse event
Internal
Handles mouse down events.
The mouse event
Internal
Handles mouse move events for camera control.
The mouse event
Internal
Handles mouse up events.
The mouse event
Internal
Handles mouse wheel events for zoom control.
The wheel event
Internal
Controls parallel translation based on mouse/touch movement.
Original X position
Original Y position
Current X position
Current Y position
Internal
Handles pinch in/out gestures for zoom control.
The touch event
Internal
Handles the end of pinch in/out gestures.
The touch event
Internal
Handles ctrl key press events.
The keyboard event
Internal
Handles shift key press events.
The keyboard event
Internal
Handles ctrl key release events.
The keyboard event
Internal
Handles shift key release events.
The keyboard event
Internal
Resets dolly and position on double tap for touch devices.
The touch event
Internal
Controls rotation based on mouse/touch movement.
Original X position
Original Y position
Current X position
Current Y position
Internal
Handles touch down events.
The touch event
Internal
Handles touch move events for camera control.
The touch event
Internal
Handles touch up events.
The touch event
Internal
Updates the camera component with new calculated values.
The camera component to update
Internal
update center, eye and up vectors of OrbitCameraController
Internal
Controls zoom/dolly based on mouse movement.
Original position value
Current position 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.
Main logic method that updates the camera based on controller state.
The camera component to update
Registers event listeners for mouse, touch, and keyboard events.
Resets the dolly and translation values to their default state.
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
Unregisters all event listeners.
OrbitCameraController is a camera controller that allows the user to orbit around a target.