Box To Box Collision

Blitz3D Forums/Blitz3D Programming/Box To Box Collision

Boiled Sweets(Posted 2003) [#1]
The collisions text always has to have a ellipsoid to something test. What if I simple want to test for a box to box collision? Tried testing for a box to box collision with type 1, 2 & 3 but neither work very well. The best I can get it is using type 2 (ellipsoid to box) but I can see that the box collides with the other box as a sphere...

NO GOOD!

Help...


Neo Genesis10(Posted 2003) [#2]
For box to box collisions, you're better off using MeshesIntersect. Its a slow routine when you're using high-poly models but for box to box routines its perfect.


(tu) sinu(Posted 2003) [#3]
and you can do additional checks such as distance or if a box is moving before checking meshesintersect.


Rob(Posted 2003) [#4]
Seems like a collosal waste when you can just compare vert overlaps far faster.


Neo Genesis10(Posted 2003) [#5]
Its probably my unoptimised methods, but I found the calculations actually took up more clock cycles than MeshesIntersect did for simple box to box collisions. Anyway, I agree with Sinu that you should check distance first.