I’m currently trying to implement collision detection. Trying to work on it from a NeHe tutorial.
However it currently doesn’t work at all well and the balls speed up.
I draw balls (using OpenGL), I bounce them inside a box, when they collide I need to detect this(done) and bounce them off each other at the correct angle (working on/trying to get help with). I am sure many people in this forum have had to do similar.
Originally posted by Korval: And this has what to do with OpenGL, precisely?
Don’t mind Korval, he tends to be harsh. Your question is off-topic, however, and will not be answered here. Try posting at www.flipcode.com, among other places.
Originally posted by Korval: It is important to have a full-function analytic solution for AI purposes, though. If you want the AI to hit something, it has to know what angle/power to use. And the fastest way to know that is to be able to solve this problem analytically.
Originally posted by Pedant: I draw balls (using OpenGL)
So if you had drawn your balls using Direct X this would be a Direct X question, or it could have been a GDI question, or perhaps even a glide question.
Most collision detection questions get answered in the same way on this board - Opengl doesn’t have anything to do with it.
Originally posted by l33t: Where can I get cheap gas in the bay area? I figure most of you are programmers, and thus live around there, and you probably drive cars, too.
Your question will tick people off unless you specify the gas has to support OpenGL.