Jump to content
  • Advertisement
Sign in to follow this  
bballmitch

Applying physics to games....

This topic is 4419 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!