yet another request to clarify collision

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
elhim
Posts: 16
Joined: Sat Mar 13, 2004 12:37 am
Location: LI, NY

yet another request to clarify collision

Post by elhim »

what i have is a model that moves where i click. one thing i see is that if i add a collision animator before the flight animator collision doesn't work. why? if i do it after, the problem is that it doesn't hold untill the next fly straight animator. if i add a collision detector each time i create a fly straight animator, strange behavior happens. so what the heck is going on!!!??? when do i need to add what animators and when do i drop them? totaly confused.
elhim
Posts: 16
Joined: Sat Mar 13, 2004 12:37 am
Location: LI, NY

Post by elhim »

is my question stupid or nobody can answer it?
schick
Posts: 230
Joined: Tue Oct 07, 2003 3:55 pm
Location: Germany
Contact:

hmmm...

Post by schick »

I haven't used the flying animators so far. But as far as i can see both animators are affecting the position of the node (your model). So get your debugger and have a look whats going on.

Maybe you can post some code to make the problem clear.
elhim
Posts: 16
Joined: Sat Mar 13, 2004 12:37 am
Location: LI, NY

Post by elhim »

okay i'm back (vacation!!!!! woooohoooo!!!!!) so. the problem is this:

Code: Select all

aNode->addAnimator(collisionAnimator);
aNode->addAnimator(flyStraightAnimator);
- this does not work. it flies straight, but does not collide.
another one:

Code: Select all

aNode->addAnimator(flyStraightAnimator);
aNode->addAnimator(collisionAnimator);
- this works, though. is it supposed to be like that?
yet another:

Code: Select all

aNode->addAnimator(flyStraightAnimator);
aNode->addAnimator(collisionAnimator);
/* some time passes */
aNode->addAnimator(anotherFlyStraightAnimator);
- in this one the first fly animator has collision, the second doesn't.

is it supposed to be like that? this is irrlicht 0.6 on linux.
Post Reply