Gravity center physics

C16354d30a3d1531f8a7fa053b95716c
0
aybe 101 Nov 20, 2009 at 21:02

After some extensive 2D work, I am now starting using 3D.

I want to create my mini physics engine so I can understand maths that are beneath, but didn’t found much infos about it.

Modeling of simple physics :
- Make a ball roll on a slope surface,
- Shoot a bunch of cubes and they go everywhere,
- well, physics !

What are the formulas involved when doing this ?

Thank you !

5 Replies

Please log in or register to post a reply.

820ce9018b365a6aeba6e23847f17eda
0
geon 101 Nov 22, 2009 at 15:41

http://lmgtfy.com/?q=physics+programming

First of all, you need collision detection, so you know when the ball is touching the slope. To create the simulation, you also need an integrator to move things around and collision response to make them bounce.

Da67174e3aa4cc2a866a31577e8adc2e
0
h4tt3n 101 Nov 23, 2009 at 07:17

You may already know these places, but I’d definitely recommend visiting the gamedev and bullet forums:

http://www.gamedev.net/community/forums/

http://bulletphysics.org/Bullet/phpBB3/

Then there’s the hardwire page with lots of stuff:

http://physics.hardwire.cz/

cheers,
Mike

C16354d30a3d1531f8a7fa053b95716c
0
aybe 101 Nov 23, 2009 at 16:22

Great, thank you :-)

6f0a333c785da81d479a0f58c2ccb203
0
monjardin 102 Nov 30, 2009 at 15:30

See Math and Physics in the DevMaster Wiki, and feel free to add anything you find interesting to it as well. The Game Physics section of Gaffer on Games also has a few great articles for beginners.

@geon I’m going to get some good use out of that website. Hilarious!

C16354d30a3d1531f8a7fa053b95716c
0
aybe 101 Dec 07, 2009 at 21:03

Thank you,