yet another request to clarify collision
yet another request to clarify collision
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.
hmmm...
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.
Maybe you can post some code to make the problem clear.
okay i'm back (vacation!!!!! woooohoooo!!!!!) so. the problem is this:
- this does not work. it flies straight, but does not collide.
another one:
- this works, though. is it supposed to be like that?
yet another:
- 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.
Code: Select all
aNode->addAnimator(collisionAnimator);
aNode->addAnimator(flyStraightAnimator);
another one:
Code: Select all
aNode->addAnimator(flyStraightAnimator);
aNode->addAnimator(collisionAnimator);
yet another:
Code: Select all
aNode->addAnimator(flyStraightAnimator);
aNode->addAnimator(collisionAnimator);
/* some time passes */
aNode->addAnimator(anotherFlyStraightAnimator);
is it supposed to be like that? this is irrlicht 0.6 on linux.