I am trying to tween an object (just a simple cube) But the animation
goes very choppy.. and in fact not moves at all ;)
When I tween the camera.z it works fine and goes pretty smooth... can
anybody explain to me why this is happening and is it possible to
tween an object at all?
I am using the hoverCam
Works:
Tweener.addTween(this.camera, { time: 2, z:1600,
transition:'easeOutSine' } );
Tweener.addTween(this.camera, {time: 2, z:800,
transition:'easeOutSine', delay:2});
Tweener.addTween(this.cube, {time:4, rotationY:90,
transition:'easeOutSine'});
Does not work:
Tweener.addTween(this.cube, { time: 2, z:1600,
transition:'easeOutSine' } );
Tweener.addTween(this.cube, {time: 2, z:800, transition:'easeOutSine',
delay:2});
Tweener.addTween(this.cube, {time:4, rotationY:90,
transition:'easeOutSine'});