PDA

View Full Version : Quaternion Papervision and Tween


mojito
01-10-2012, 08:45 AM
I am trying to figure out how to solve a problem with a lack of knowledge on Quaternions and Papervision. I know just enough to get me in trouble. ;)

I want to use the tween plugin provided by GreenSock that is for this special thing.

I'm trying to animate around a sphere. Something like this http://pv3d.org/2008/11/29/using-slerp-to-move-around-a-sphere/

And the non Tween solution is there , i'd just really like to use the tween lib.

So the problem is with the following
TweenLite.to(camera, 2, {quaternions:{orientation:new Quaternion(1, 0.5, 0.25, slerp)}});

There is no orientation property on the camera which is my 3d camera in papervision, I tried transform as well.

Any pointers gladly received.