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

Coupled oscillators: Multiple springs and objects

In all the examples so far, we’ve considered only a single object and spring system. Things get even more interesting when you couple more than one object and spring system together. In fact, you can create extended systems based on objects with masses connected by springs. In the next subsection, you’ll see an example of what can be done. Then we’ll look at more complicated examples in Chapter 13 when we model deformable bodies.

Example: A chain of objects connected by springs

What you’ll create is shown in Figure 8-10: a number of balls connected by springs, with the first ball connected to a support. The support will then be moved around, causing the chain of suspended balls to move around, ...

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