Jump to content
  • Advertisement
Sign in to follow this  
Butabah

Starting a custom physics engine.

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

Hi there, I've been taking my time Game Programming, jumping here and there. A topic I haven't dealt with is physics.

What's a good starting point for physics?
Any good reference material? Examples with OpenGL would be awesome, but I'm already asking a lot.

I know I could google this all, but you guys are always so insightful.

Share this post


Link to post
Share on other sites
Advertisement
Hopefully you realize that writing a physics simulation has nothing to do with OpenGL, which is used to draw triangles on the screen.

Christer Ericson's book is a great resource for detecting if objects collide

Share this post


Link to post
Share on other sites

Hi there, I've been taking my time Game Programming, jumping here and there. A topic I haven't dealt with is physics.

What's a good starting point for physics?
Any good reference material? Examples with OpenGL would be awesome, but I'm already asking a lot.

I know I could google this all, but you guys are always so insightful.

*Shudder*, writting a physics engine was one of the most frustrating coding experiences ever :(.

Take a look at Bullet physics , a free, open source physics engine used in blender, games and hollywood movies. Open source means that the whole source code is available . At least you could use it as reference when trying to write your own engine.
There are serveral demos available and chances are high, that some or all of the demos use OpenGL for visualisation.

Share this post


Link to post
Share on other sites
The way I always recommend is to take Box2D *Lite* and port it to 3D. The author Erin Catto has given a lot of presentations which will help you on your way as well. Start with a simple pendulum and continue with a sphere on a plane. From there move on to boxes.

Share this post


Link to post
Share on other sites
If you want to write your own, I've written a getting started article which might help!

http://www.wildbunny.co.uk/blog/2011/04/06/physics-engines-for-dummies/


Cheers, Paul.

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!