Custom version of Three.js TrackballControls.js made by Eberhard Graether and Mark Lundin
It allows you to move only one object of your scene and zoom/pan with the camera
controls = new THREE.ObjectTrackballControls( object, camera, domElement );
See example to usage precisions.
enabled
: Enable controls. Default istrue
.moveCamera
: Moe camera instead of object (equivalent as using classic TrackballControls). Default isfalse
.rotateSpeed
: Rotation speed factor.zoomSpeed
: Zoom speed factor.panSpeed
: Pan speed factor.noRotate
: Disable rotation. Default isfalse
.noZoom
: Disable camera zoom. Default isfalse
.noPan
: Disable camera paning. Default isfalse
.noRoll
: Disable rolling effect. Default isfalse
.staticMoving
: Disable inertia effect. Default isfalse
.dynamicCameraDampingFactor
: Factor of camera inertia. Used whenmoveCamera
is set totrue
dynamicObjectDampingFactor
: Factor of object inertia. Used whenmoveCamera
is set tofalse
minDistance
: Minimal distance the camera can reach while zoom.maxDistance
: Maximal distance the camera can reach while zoom.