Collision detection

Where can I find a tutorial about Collision detection for my engine?

I’m using heightmaps.
I know you all heard topics about collision detection, but…


Don’t tell me it ain’t noone on this forum that knows any tutorial about collision detection…?



I have written a collision detector a few days ago. I don’t use heightmaps, but I have a lot of large trianglestrips, which at the end is the same. What I do is first check in which “heightmap” I am. After that I obtain the pair of triangles which form the rectangle just under my airplane. After that I select the triangle over my airplane really is and with it I compute the altitude. Once I know the altitude of the terrain and the flight altitude I can check is I’m under the ground. To ensure a correct behaviour I have set up 7 control points on my airplane to check ground collision.

If you want I can post the subroutine, but it is written in Fortran95.