Can a FollowSpline animator be automatically destroyed...

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
yin nadie
Posts: 43
Joined: Wed Mar 31, 2004 1:03 pm
Location: Seville, Spain
Contact:

Can a FollowSpline animator be automatically destroyed...

Post by yin nadie »

Can a FollowSpline animator be automatically destroyed when the scene node has got to the last node?

And also, It looks like the follow spline animator doesn't work well with the collision response aniamtor. Does it matter the order in which they are created and/or asigned?
Mercior
Posts: 100
Joined: Tue Feb 24, 2004 1:53 am
Location: UK
Contact:

Post by Mercior »

Running a spline animation along with collision responses does not sound like a good idea! The spline will force an object one way while the collision forces it the other way.. Turn off collisions while using a spline animation.

As for stopping at the end of the animation, I had this problem too. My solution was to check if the objects distance from the last point in the spline sequence was within a certain threshhold. When using this technique its useful to submit the last point twice in order to ensure the object heads straight towards the last point.
yin nadie
Posts: 43
Joined: Wed Mar 31, 2004 1:03 pm
Location: Seville, Spain
Contact:

Post by yin nadie »

Aw. I needed them both to work at the same time for this effect. The effect is somebody following something through a collisionable (or is it collidable?) scenery.

hmm...
Post Reply