View Full Version : Collision detection

08-16-2000, 09:12 AM
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...


08-18-2000, 04:03 AM
Don't tell me it ain't noone on this forum that knows any tutorial about collision detection...?


08-18-2000, 09:13 AM

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.