Creates a new ControlCamera instance with a new camera object
The options for the camera object
The canvas element to bind the camera to
Optional
fov?: numberThe field of view for the camera in degrees
The canvas height
Optional
max?: numberThe far clipping plane for the camera
Optional
min?: numberThe near clipping plane for the camera
Optional
mouseThe sensitivity of the camera movement
The canvas width
The PerspectiveCamera that this camera uses
A boolean flag that indicates whether the camera can pan using mouse controls or not
A boolean flag that indicates whether the camera can pan using touch controls or not
The canvas element the camera is bound to
Protected
Readonly
classesThe Three.js classes to be used
The mouse sensitivity for camera panning
The angle in radians for the x-axis rotation
The angle in radians for the y-axis rotation
An object that stores the touch information
A flag indicating whether a touch event is currently active
The pointer event identifier of the active touch event
The x-coordinate of the last touch event
The y-coordinate of the last touch event
The difference in the x-coordinate between the current and the last touch event
The difference in the y-coordinate between the current and the last touch event
Disables the camera panning using mouse controls
The current instance of ControlCamera
Disables the camera panning using touch controls
The current instance of ControlCamera
Enables the camera panning using the mouse and adds the event listeners to the element
The current instance of ControlCamera
Enables the camera panning using touch screen and adds the event listeners to the element
The current instance of ControlCamera
Sets the default angles for the camera quaternion and updates it accordingly
The angle in radians for the x-axis rotation
The angle in radians for the y-axis rotation
The current instance of ControlCamera
Generated using TypeDoc
A class that controls the camera quaternion and rotation from pointer events