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

Deformable bodies

You now know how to simulate rigid body motion, but how do you simulate the motion of deformable bodies such as ropes and clothes, whose shapes can change? There are various approaches to do that, but we'll introduce one particular approach based on the spring physics that we covered in Chapter 8. Let's begin by a brief recap of the main principles and formulas of spring physics and discussion of how they can be applied to model deformable bodies.

Mass-spring systems

The basic modeling approach is to represent a deformable extended object as a series of particles with mass joined together by virtual springs. Hence we generally refer to such models as mass-spring systems. As an illustration of the method, consider the simple ...

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