OrbitControls constructor = *
parameters to use.
Camera to use with this OrbitControls.
Private
#elementHTMLElement (or Window element) to use for event listeners.
The focus point or the OrbitControls. Default to Vec3(0)
.
Whether to allow zooming or not. Default to true
.
Minimum zoom value to use. Default to 0
.
Maximum zoom value to use. Default to Infinity
.
Zoom speed value to use. Default to 1
.
Whether to allow rotating or not. Default to true
.
Minimum angle to use for vertical rotation. Default to 0
.
Maximum angle to use for vertical rotation. Default to Math.PI
.
Minimum angle to use for horizontal rotation. Default to -Infinity
.
Maximum angle to use for horizontal rotation. Default to Infinity
.
Rotate speed value to use. Default to 1
.
Whether to allow paning or not. Default to true
.
Pan speed value to use. Default to 1
.
Get our element to use for event listeners.
Set the element to use for event listeners. Can remove previous event listeners first if needed.
HTMLElement (or Window element) to use.
Reset the OrbitControls values.
Parameters used to reset the values. Those are the same as OrbitControlsBaseParams with an additional position parameter to allow to override the OrbitControls position.
Allow to override the camera position.
Private
#addPrivate
#removePrivate
#onPrivate
#onPrivate
#onPrivate
#onPrivate
#onPrivate
#onPrivate
#onPrivate
#onPrivate
#updatePrivate
#rotatePrivate
#panPrivate
#zoomPrivate
Move the camera forward or backward.
new value to use for zoom.
Destroy the OrbitControls.
Helper to create orbit camera controls (sometimes called arc ball camera).
Example