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
Internalcalculate up, eye, center and tangent vector with controller influence
InternalHandles context menu events.
The context menu event
InternalGets the field of view Y value from the camera component.
The camera component
The fovy value in degrees
InternalCalculates the distance between two touch points.
The touch event
The distance between touch points
InternalHandles mouse double-click events for resetting camera state.
The mouse event
InternalHandles mouse down events.
The mouse event
InternalHandles mouse move events for camera control.
The mouse event
InternalHandles mouse up events.
The mouse event
InternalHandles mouse wheel events for zoom control.
The wheel event
InternalControls parallel translation based on mouse/touch movement.
Original X position
Original Y position
Current X position
Current Y position
InternalHandles pinch in/out gestures for zoom control.
The touch event
InternalHandles the end of pinch in/out gestures.
The touch event
InternalHandles ctrl key press events.
The keyboard event
InternalHandles shift key press events.
The keyboard event
InternalHandles ctrl key release events.
The keyboard event
InternalHandles shift key release events.
The keyboard event
InternalResets dolly and position on double tap for touch devices.
The touch event
InternalControls rotation based on mouse/touch movement.
Original X position
Original Y position
Current X position
Current Y position
InternalHandles touch down events.
The touch event
InternalHandles touch move events for camera control.
The touch event
InternalHandles touch up events.
The touch event
InternalUpdates the camera component with new calculated values.
The camera component to update
Internalupdate center, eye and up vectors of OrbitCameraController
InternalControls 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.