Collision
Blitz3D Forums/Blitz3D Programming/Collision
| ||
I want to detect collision but not allow blitz to stop the movement of my objects. Example: Soldier hits enemy soldier with a sword. The sword doesn't stop when it hits... it cuts right into the flesh. |
| ||
MeshesIntersect (mesh_a,mesh_b ) should do... Hopefully is not too slow. |
| ||
MeshesIntersect is slow. Use a proxy object (sphere) parented to the sword, and perform collision detections on that instead. |
| ||
^^ [edit]what he said.[/edit] |
| ||
Wouldn't the sphere object, once collided, stop the sword from moving? It is colliding after all... |
| ||
It would be the other way around, the sword would stop the sphere object from moving. To avoid a complete stop, force the sphere to keep moving: For a sword, maybe a cube (entitybox) is more suitable. Or a Pivot at the top of the sword. |