there is a rotations property array for custom rotations per CurveSegment if you have seen RailAway demo, that's how the wagon stays following the rail tracks in corners The definition is a Number3D per segment, x,y,z value being the rotation values.

if rotation 90 needs to be constant, I would first set car.rotationX = 90; then car.applyRotations()/;
then pass to the PathAnimator.

Internally the system assumes the objectSpace orientation was a choice made by the dev therefor no additional rotations other than y or z are affected if you have set align to path to true
or if you have a lookat and a target.

note that if you need to change runtime like any other meshes, just nest your mesh into a container and pass the container to the animator, the mesh is then to be affected in anyways you want. That would be here for instance the car on a track that is allowed to move/turn sidewards along the road freely
yet following the path.

Fabrice


On Jul 14, 2009, at 12:04 AM, desgraci wrote:


i was wondering if i use the path animator on a plane (it has a car
painted by each side) that travels in x, y and z axis, how to keep it
with rotationX=90 always? i tried to use the path align false but i
stills it "falls" pararell to the ground, how to fix this?

Reply via email to