I want to change the position of the camera during rotation.
Here is my function:
function moveAndLookAt(camera, dstpos, dstlookat, options) { options || (options = {duration: 300}); var origpos = new THREE.Vector3().copy(camera.position);
It works great: http://codepen.io/abernier/pen/zxzObm
The only problem is that the animation for rotation does NOT seem linear ... causing decay with rotation of the position (which is linear).
How can I turn slerp into linear animation?
thanks
source share