Skip to main content
GameDev.net gamedev.net
🔒 Locked

Collision detection

Started by Tera_Dragon Nov 18, 2005 at 2:18 PM 0 replies 900+ views
Original Post
Tera_Dragon
Tera_Dragon
I want to implement triangle-triangle collision detection for a model, but have been unable to find any tutorials on how to do this. If someone could give me a link to a good site or two on this it would be greatly appreciated.
____________________________________________________________Programmers Resource Central
badsector
badsector
This isn't a hard task, every kind of collision detection is actually a matter of one or more intersection tests.

An easy to implement way is to check if each edge (which also is a line segment) of the one triangle penetrates the other triangle. If so, then the triangles collide. Getting the collision points (which is actually a line segment) is a little more tricky, but if you draw the situation in paper, you'll figure out a solution. I just don't have the means right now to draw it for you :-).

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.