Friday, April 23, 2010

Collisions

Our collisions have been quite broken for a while. Specifically, the triangle to AABB collision.
We tried figuring out different methods that would work for every case (especially, those where triangles are much bigger than the AABB). We even tried building AABBs around each triangle and then doing AABB to AABB... An expensive, sloooow way but which always worked (at least, it wouldn't give false negatives).
And it still didn't work.
This made us realize that the problem had to be somewhere else.
I rewrote some collision functions, like moving sphere to triangle... Just trying to find where the error was.
Apparently, the error wasn't really in the collisions. It was in the way the velocities and the player were being handled.
So, hopefully, we will be able to start adding new functionality soon.

No comments:

Post a Comment