Skip to main content
gamedev.net
🔒 Locked

Polygon Intersection

Started by Sir Sapo Oct 13, 2004 at 11:27 PM 2 replies 2.4k views
Original Post
Sir Sapo
Sir Sapo
Is there a built in function to OpenGl that can determine if 2 polygons are intersecting? If not, how can I find out if they are? This is for collision detection purposes btw.
My Current Project Angels 22 (4E5)
dxprog
dxprog
OpenGL is just a graphics library and as such I don't think it has any collision routines.
The world revolves around programming!CT Square - reliable web hostingwww.ctsquare.net
EvilProgrammer
EvilProgrammer
No there's not, OpenGL is only a graphics api. You need to do the calculations yourself. I would suggest using bounding volumes before moving down to the individual polygons.
hplus0603
hplus0603
I suggest looking at the Open Dynamics Engine which has both collision and simulation of what happens when you collide.
enum Bool { True, False, FileNotFound };

Topic Locked

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

Sign in to reply to this topic.