No collision in animation
Posted: Sat Oct 08, 2005 12:33 pm
Hi,
i'm creatin n RPG game.
i've implemented the click on the screen n run code that is when i click anywhere on the screen my character starts to run n reaches that point on the map. i used the createFlyStraightAnimator() function.
i've 3 problems :
1. after reaching the destination my character doesnot stop running.
2. i have put irrlicht collision between the map n the model but if there is a small wall or object n i click on the other side, the model just runs thru it.
that means even if there is a bump on my terrain it just slides thru the bump n not over it.
3. even if i click on a wall because of collision the model runs in the air n reaches that point on the wall. so she is hanging in the air.
can anyone plz help me out here???
can it be solved by pathfinding algo or should i use newton physics engine to solve the collision problem???
or is there any other way of animation???
Thnx
i'm creatin n RPG game.
i've implemented the click on the screen n run code that is when i click anywhere on the screen my character starts to run n reaches that point on the map. i used the createFlyStraightAnimator() function.
i've 3 problems :
1. after reaching the destination my character doesnot stop running.
2. i have put irrlicht collision between the map n the model but if there is a small wall or object n i click on the other side, the model just runs thru it.
that means even if there is a bump on my terrain it just slides thru the bump n not over it.
3. even if i click on a wall because of collision the model runs in the air n reaches that point on the wall. so she is hanging in the air.
can anyone plz help me out here???
can it be solved by pathfinding algo or should i use newton physics engine to solve the collision problem???
or is there any other way of animation???
Thnx