InternalCreate Camera Controls.
Type of controls: "orbit", "trackball".
The camera object.
The lookAt target for the camera.
The dom element of the rendering canvas.
Speed for rotating.
Speed for zooming.
Speed for panning.
Enable holroyd (non-tumbling) mode for trackball.
Add an event listener callback for the "change" event.
the callback function.
Remove assets and event handlers.
Get the lookAt target of the camera.
The lookAt target
Get the initial zoom value of the camera.
Update screen dimensions after canvas resize. Only applies to TrackballControls which caches screen dimensions.
Initialize Orbit Controls.
Initialize Trackball Controls.
enable holroyd (non tumbling) mode.
Check if the user is currently interacting with the controls (rotating, panning, zooming).
true if user is dragging/interacting, false otherwise.
Remove the event listener callback for the "change" event.
Reset camera to initial (automatically saved) state of position, up, quaternion and zoom.
Rotate camera left (OrbitControls only)
the angle to rotate.
Rotate camera up (OrbitControls only)
the angle to rotate.
Rotate camera around x-axis (TrackballControls only)
the angle to rotate.
Rotate camera around y-axis (TrackballControls only)
the angle to rotate.
Rotate camera around z-axis (TrackballControls only)
the angle to rotate.
Save state for reset.
Set the camera to be controlled.
a threejs Camera object.
Change the trackball holroyd (non tumbling) flag.
holroyd mode enabled.
Set the pan speed.
the speed value (1.0 = default).
Set reset location value.
camera target as THREE.Vector3.
camera position as THREE.Vector3.
camera rotation as THREE.Quaternion.
camera zoom value.
Set the rotate speed.
the speed value (1.0 = default).
Set the lookAt target of the camera.
camera target as THREE.Vector3.
Set the zoom speed.
the speed value (1.0 = default).
Update controls after camera position, zoom or quaternion changes.
Unified camera controls supporting both orbit and trackball modes.
Controls wraps CADOrbitControls and CADTrackballControls, providing:
Control Types
"orbit": OrbitControls - familiar Google Maps style rotation"trackball": TrackballControls - unrestricted rotation with optional Holroyd modeHolroyd Mode
When enabled for trackball controls, prevents tumbling by keeping the up vector stable. This provides a more intuitive CAD experience.