Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Some Guy

How do I start programming physics?

This topic is 6035 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

I would like to know if there''s an open source physics library out there I can get used to. I know a lot about programming, don''t take me wrong, but when it comes to physics modelling... I''ve never done it before. I don''t know what I want. When I''m programming something I know all too well, like a vector class I just made recently, I know what to code and I know the interface I want to be able to use it with. I know physics as well, and I''m studying a great deal of calculus, but I''ve never programmed a physics system-- never even seen the code for one-- so I don''t know how to code a good interface for it that I can use in demos. Therefore, I would appreciate someone pointing me to a physics library and showing me a few pointers on the subject.

Share this post


Link to post
Share on other sites
Advertisement
Just create a base object class and implement a function that tests for collisions, acceleration, etc. Then call that function every frame. Also after testing for the effects you''ll want to implement functions that are called if the test returns true.

Share this post


Link to post
Share on other sites
Fundamentals. That''s what you''re looking for, no? Chris Hecker wrote a few articles for Game Developer Magazine a few years ago, and you can find them as PDF files on his web site,

http://www.d6.com/users/checker/dynamics.htm

Also, there have been several other introductory articles (by Jeff Lander and others) in Game Developer Magazine, now available for free at:

www.gamasutra.com

You''ll have to register with gamasutra, but its free.

Hell, you might even find some useful articles here on gamedev.net:

http://www.gamedev.net/reference/list.asp?categoryid=28

Some of the examples from these articles could possibly be used like an open source toolkit to help you get started.

Hope this helps!

Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.

Share this post


Link to post
Share on other sites

  • 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!