# From simple physics with a ball, to a more complicated shape

Hello fellow game devs and stack overflowers...

I recently made a transition from OpenGL ES 1.1 to 2.0 (on Android via NDK) and things are going well so far. I'm working on doing a dice rolling application (gaming dice up to 20 sided, not just regular 6 sided die) as a way to learn more about how physics is implemented in a gaming environment.

I've explored implementing existing engine options (such as Bullet) and I don't think I need to implement something quite so sophisticated. I've found several tutorials that handle a lot of the general physics involved with initial trajectory, velocity, angle of contact and reflection angle, etc. I'm confident that I'd be able to implement ball-like behavior without much trouble.

My question lies in when I attempt to make the interaction of the die shape with another surface more "realistic," for example... the die strikes the floor surface at such an angle where only one corner makes contact with the floor. In my mind, the center of gravity of the object would play a part in determining how the die bounces away, possibly even spinning it it faster, etc... but I am not sure what the actual math involved is.

Are there any recommended resources for getting into this level of detail? Initial searches haven't turned up much...

Thanks to everyone in the community, -Jeremiah

-
Physics "in a gaming environment" is one of three things: 1) incredibly simple like just a bouncing ball or sliding puck that even I could do, 2) use a physics library and stop worrying about it, or 3) extremely complex and custom physical simulations for automobiles/airplanes/machines. The reason you may not find much to read is that you've veered straight into #2, and those libraries are written by people already familiar with classical mechanics and they don't really write how-to blogs for each other =) – Patrick Hughes Jun 1 '12 at 5:53
Thanks for this... that does make sense. I realize if I were to do more of a "shooter" or something that I'd more likely be doing very simple point/sphere collision with simple hit zones... so I may be tackling something unnecessarily difficult. Still, I'm getting some research done here and there and think I may be able to hack something together that isn't going to break my brain. – Maximus Jun 1 '12 at 18:08