Sign in to follow this  

Applying physics to games....

This topic is 4202 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, This coming school year I will be taking AP Physics B concurrently with AP Calculus BC. I also am interested in learning how to apply the physics to my game projects (i think i can figure out the calculus part)...Does anyone suggest any books that talks about applications of Physics? Like a book that I could read as I progress through my school year?

Share this post


Link to post
Share on other sites
IMHO the applications are obvious:

Q: how do i make this thing move?
A: <turns to kinetics of motion chapter in school textbook>

Q: how do i make the camera act like a spring?
A: <turns to sub-chapter on springs>

Dunno. For me anyway my high school and college textbooks on physics were what I wanted in my hands when I was programming game physics.

-me

Share this post


Link to post
Share on other sites
First off, if you don't feel like re-inventing physics for your programs, there are plenty of free SDK's.
ODE and PhysX just to name two.

Secondly, the formulas in the books can be translated as noted above. The hard part is realizing that you can't just
"integrate" on a computer. You need to look into numerical integration methods like RK2, RK4(integrates any formula, including momentum into velocity), verlet(kenetics only, position/velocity), or velocity-verlet(kenetics only).

Share this post


Link to post
Share on other sites
Actually integration is the easiest part. Developing robust collision detection and response for multiple collisions between multiple bodies (ie > 2) in the same frame is much harder and requires implementing a big matrix solver (I think). But go ahead try it anyway, it's a good learning experience :)

Share this post


Link to post
Share on other sites

This topic is 4202 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this