Poor Collision
Blitz3D Forums/Blitz3D Programming/Poor Collision
| ||
I'm trying to do a collision with two entities in movement, when the entities are in the same direction, the collision occurrs normally, but, when the entities are in the inverse direction ( Like this: entity1 ---> <---entity2 ) the entities not collide, how I do this work? |
| ||
The problem is that collisions between moving <-> moving entities don't work properly in Blitz3D. Standard Blitz3d collisions only really work with a moving <-> static object. The way to get round this is to either: 1. Use another collision engine, e.g. nuclearglory collision DLL, or Coldet DLL. I recommend Coldet, it's very easy. 2. Use a physics engine, e.g. JV-ODE 3. Use the code here to setup moving entity <-> sphere collision: www.blitzmax.com/codearcs/codearcs.php?code=898 |
| ||
Thank you sonicfactory. I've the NGCollision! Thanks! |