The camera to be controlled by the OrbitControls object
The distance of the camera from the target point
Flag indicating whether the camera should be able to zoom
Freezes the camera's rotation, position, and zoom
Listens for mouse down events and sets the mouse drag flag to true if necessary
The mouse down event
onMouseMove updates the mouseMovement vector with the movementX and movementY properties of the mouse event
The mouse event
Listens for mouse up events and sets the mouse drag flag to false
The mouse up event
onMouseWheel updates the zoomDirection if the OrbitControls is zoomable
The mouse wheel event
Sets the distance of the camera from the target point
The distance of the camera from the target point
Sets the rotation angles of the camera around the target point
The rotation angle around the horizontal axis
The rotation angle around the vertical axis
Sets the target point which the camera will orbit around
The point around which the camera will orbit
update updates the cameraOrbitX, cameraOrbitY and distance according to the mouse movement, rotation and zoom direction
The change in time since the last update
Constructs an instance of the OrbitControls class