physics formulas help

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 :)

Thankyou.
Yea sure. If you have a more specific problem you need to address in the subject post it here.
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
You'll just have to struggle along. At the very least you'll need to know algebra, and preferably some basic calculus. Sorry!
Or you can learn some basic Python, download VPython (3D modeling suite) and jump right into it.

Look at these videos first: http://showmedo.com/videotutorials/series?name=pythonThompsonVPythonSeries

Python syntax is so simple that you can easily see what Eric is doing and apply it to C++ if you wish.

ALL this stuff is very dependent on vectors, check this out too: http://chortle.ccsu.edu/vectorlessons/vectorIndex.html

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.
What you'll probably want to do is look into approximation techniques. Computers can only do finite math.

Now, as for delta--delta represents a change or difference.
Δx = xfinal – xinit

For instance, that slope formula you learned in algebra:
m = (y2 – y1) / (x2 – x1)
could be expressed as
m = Δy / Δx
and read as, the change in y over the change in x.
Thankyou very much :D I've just made my first physics implementing program!
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.
Topic archived. No new replies allowed.