Cathy is right, OpenGL is a *rendering* component.
You could do all the intersection calculation yourself -- there are
math-related sites that will show you the formule which you than only need
to implement (keyphrase for google: "triangle triangle intersection", *with*
those doublequotes!), and even more important, do that in such a way that
the number of checks does not exponentially grow (brute-forcing those checks
would need almost the number of planes to the power of two. In other words:
100 triangles causes the need for almost 10,000 checks.).
The other way is to find a ready made component, in the same way OpenGL is
one. You could try the keywords "physics engine" on google.
Hope that helps.
-- Origional message
Post by Jean-Christophe
Does OpenGL provide a way to detect
that two objects are intersecting ?
( for instance, to avoid an object passing through a wall )
If it doesn't, would you be so kind to tell me how I can implement
such a thing without having to compare all coordinates of all objects ?