sole/tween.js — Issue #21: bezier?
Author: canado
Created: 2011-11-15 19:44:53+00:00
State: open

Hi I am using the tweenjs for threejs

First: I would like to know if we can do some Tweens using the position and the rotation of the camera at the same time.
something like

new TWEEN.Tween( camera)
.to({position.x: 0,position.y:2710, position.z:9000, rotation.x: -30 * (Math.PI / 180 }, 6000 )
.easing( TWEEN.Easing.Exponential.EaseOut)
.start();

Second: In order to have nice camera movement I would like to know if you some bezier implementation is possible
something like

new TWEEN.Tween(camera)
.to( bezier:[{position.x:0, position.y:0, position.z:50, rotation.x:-30 * (Math.PI / 180)},
{position.x:100, position.y:200, position.z:200, rotation.x:-90 * (Math.PI / 180)},
{position.x:200, position.y:300, position.z:100, rotation.x:-60 * (Math.PI / 180)}] )
.orientToBezier(true)
.easing( TWEEN.Easing.Exponential.EaseOut)
.start();