What’s the best way to tween an object through a 3Dimensional bezier curve? Greensock seems to be giving me strange results.
I need to go from:
vector 1 to vector 2 to vector 3 - (Is a U shaped tween)
Anyone?
Thanks
Darcey
Tweening an abject through a bezier curveSoftware: Away3D 3.x |
||
Darcey, Moderator
Posted: 20 July 2011 12:48 PM Total Posts: 209 What’s the best way to tween an object through a 3Dimensional bezier curve? Greensock seems to be giving me strange results. I need to go from: vector 1 to vector 2 to vector 3 - (Is a U shaped tween) Anyone? Thanks Darcey |
||
Darcey, Moderator
Posted: 21 July 2011 09:41 AM Total Posts: 209 [ # 1 ] To answer my own question, may be useful for someone else… Path animator can achieve this but not so great for easing: http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article.php?index=4&subindex=0&aid=247
D |
||
Richard Olsson, Administrator
Posted: 22 July 2011 11:17 AM Total Posts: 1192 [ # 2 ] You should be able to use PathAnimator and just animate it’s progress property from 0.0 to 1.0 using your favorite tweening engine. That should allow you to use any easing you like. |
||
|
||
Fabrice Closier, Administrator
Posted: 22 July 2011 01:21 PM Total Posts: 1265 [ # 4 ] in 3.x you have a path.debug—> draws the curves of your path. (you can see it in action in Prefab). In 4.0 we do not have draw curves yet, so till then, the debug feature is commented out. |
||
|