Hi all,
I am trying to use object controls to rotate an object on it’s own local axes
This is the link to the control I am using
I set it up as follows
var object;
var loader = new THREE.OBJLoader();
object = loader.parse(objtext);
var objectControl= new THREE.ObjectControls(camera, renderer.domElement, object);
objectControl.setDistance(8, 200); // set min - max distance for zoom
objectControl.setZoomSpeed(0.5); // set zoom speed
objectControl.enableVerticalRotation();
objectControl.enableHorizontalRotation();
objectControl.setMaxVerticalRotationAngle(Math.PI / 4, Math.PI / 4);
objectControl.setRotationSpeed(0.05);
I can move it around with my mouse but it’s not rotating around the center point of the object. Is there an easy way to accomplish this with this control?
Thanks