have gone through most of the examples for limiting Orbital pan ,
could not make this work , it goes beyond the set values ,
pan and tilt limits to -some small value to + small value,
and what id like to do is once the pan is done , get cameras back to the original values (0,0,5),
yes i tried to set this in animate() , but would not adhere to the set values ?
i saw this work in one of the examples cant make this work in my code though,
what am i missing ,
controls = new OrbitControls( camera, renderer.domElement ); controls.minPolarAngle = Math.PI * .15; controls.maxPolarAngle = Math.PI * .15; controls.panSpeed = .075; controls.minAzimuthAngle = Math.PI * .15; controls.maxAzimuthAngle = Math.PI * .15; controls.enableDamping = true; controls.dampingFactor = 0.01; controls.minDistance = 5; controls.maxDistance = 5;