Collision

Blitz3D Forums/Blitz3D Programming/Collision

xmlspy(Posted 2006) [#1]
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.


xmlspy(Posted 2006) [#2]
MeshesIntersect (mesh_a,mesh_b ) should do... Hopefully is not too slow.


GfK(Posted 2006) [#3]
MeshesIntersect is slow.

Use a proxy object (sphere) parented to the sword, and perform collision detections on that instead.


b32(Posted 2006) [#4]
^^ [edit]what he said.[/edit]


xmlspy(Posted 2006) [#5]
Wouldn't the sphere object, once collided, stop the sword from moving? It is colliding after all...


b32(Posted 2006) [#6]
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.