Tweening an abject through a bezier curve

Software: Away3D 3.x

Avatar
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

   

Avatar
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:
Article I wrote using the path animatior.

http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article.php?index=4&subindex=0&aid=247


I however went for stacking multiple tweenlite tweens using a combination of eases going from linear.none to end ease etc.


Still not found a full tween capable of bezier curve tween in x,y,z. Doing this in tweenlite results in some sort of bounce back initially before messing up x,y and z in different ways.

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.

   

Avatar
Darcey, Moderator
Posted: 22 July 2011 11:24 AM   Total Posts: 209   [ # 3 ]

ooo nice one, didn’t think of that… Will give that a bash now smile

Do you know if there is a way to draw the path in the scene that the path animator has defined? Major assist in animation configuration.

Chanks for the info smile

   

Avatar
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.

   

Avatar
Darcey, Moderator
Posted: 22 July 2011 06:07 PM   Total Posts: 209   [ # 5 ]

Nice one Fabrice smile

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X