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 ...

Get The Essential Guide to Physics for Flash Games, Animation, and Simulations now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.