Hey, I am working on an openGL game, that uses physics. I've looked online, and found a few formulas that will help with the process, but I'm only in geometry math class (going into Algebra 2 next year), so I don't really know how they are used PROPERLY. I'm going to try to find some sort of class either over the summer, or next year in school. But untill then, I would like to have some sort of way to learn other usefull formulas, and how they're used. If you guys have any kind of link, or reference that I could use, that would be greatly appreciated :)
Basically, I would like some stuff on acceleration (I have found a formula for it, but I'm not sure how to represent "delta" in code :-/) I would also like some stuff on kinetics (When one sprite hits another, energy is transferred to the other.) Lastly, I would like to have formulas on
elastic potential energy (the current formula I have is .5*kx^2.) Thankyou
P.S.: I feel your pain. I blew off math and physics is school (my dad has degrees in both) and I regret it every day. Despite that, I am bouncing balls around, sliding pucks with friction, etc., etc., and it was really easy with VPython and a little vector math.
BTW: dt means difference in time. To use it you just need to init dt=0 before your game loop, increment it IN the loop (e.g. dt += .01) and then use it in your coded formulas wherever you need elapsed time. It's all explained very well in the VPython videos.
Implementing physics is not simple algebra. If the dynamics equation is a differential equation, then a numerical solver is needed, typically rk4.
Even a simple spring and a mass system ( like the suspension of a car) is a set of differential equations. However, once the numerical solving equations are derived, it looks like algebra.
If you are interested, I can provide some sample code.