O'Reilly logo

The Essential Guide to Physics for Flash Games, Animation, and Simulations by Adrian Dobre, Dev Ramtal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Gravity

As inhabitants of a planet, we are aware of gravity perhaps more than any other force. Gravity, also known as gravitation, will play a part in most of the simulations you’ll build in this book. In fact, you’ve already come across several examples. However, in all the cases you’ve met so far, we’ve dealt with gravity as it exists near the surface of the Earth—as a constant force. It’s now time to take a deeper look at gravity.

Gravity, weight, and mass

Let’s first recap briefly what you already learned about gravity in the previous chapters. If an object has mass m, then Earth exerts a force on it that points vertically downward. The magnitude of this force of gravity is equal to mg, where g is a constant equal to approximately 9.81 m/s ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required