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

Programming physics

So, how do you code up physics? Do you program the motion or forces, or both? And what does it involve?

Once you know some basic physics (and some simple math), coding it is not much different or more difficult than what you are used to as a programmer—provided you do it in the right way. Let us take some time to explain what this “right way” is.

The difference between animation and simulation

Some wise guy once said “A picture is worth a thousand words” or something like that. One could extend this by saying “A movie is worth a thousand pictures”. A movie (or animation) adds so much more to our perception than a static image because it includes the element of change in time, an extra dimension. But there is a sense in which ...

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