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

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

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