Sure you can,

just say
object.rotationY = 90; //--> or whatever is needed
then
(object as Mesh).applyRotations();//rotates internally the mesh geometry
//--> rotationY is now back to zero if you trace, while your mesh is remains rotated on the Y axis

the rotations property on the PathAnimator are there to allow to have rotations along the path. say you have an aircraft, you define a path that goes from air to ground where you want it crash. when align to path prop is set the aircraft would point at the path direction. but if you want the aircraft has also some roll influence while following the path, just pass a rotations array, a series of Number3d, acting per CurveSegments the Number3d are representing in this case the rotational influence (rotx, roty, rotz). they are applyed or a linear fashion between start and end of the segments. if less Number3D's are passed than the length of the path, the last influence is kept until the end of the path.

Note that it can work pretty confusing, so I suggest you start with just 2 segments and play, best way would be to comment all other segments into your path definition, then gradually add rotations and path segments.

Fabrice


On Nov 15, 2008, at 4:41 PM, cellis wrote:


Awesome!

That worked Fabrice.

Now i have another problem and i'm not sure if i have to bust out the
trig for this. My object animates along the path, but doesn't point in
that direction. For instance if it was a Car object, instead of
looking like it is driving forward on that path, it looks instead like
it is drifting along the path. Are there any built in functions for
this or do i have to do the rotation by hand?

I was unsure as to how to use the rotations property on the path
data...

Thanks alot!


On Nov 15, 7:14 am, Fabrice <[EMAIL PROTECTED]> wrote:
I've posted a tutorial on this a few days ago...

http://away3d.com/tutorials/tutorial-how-to-use-the-pathanimator- class

More are coming on how to mixe this class with other Path based classes.
So keep an eye on the tutorial section at away3d.com.

Fabrice

On Nov 15, 2008, at 10:21 AM, paullaster wrote:



Wanted to post this helpful doc about PathAnimator  to the Google
group community.

Reply via email to