Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Okay, enough looking at what’s there. It is time to write some code and make something happen.
The first obvious experiment is to make the bodies move. We have mentioned that the SmoothMover class provides a move() method, and since a Body is a SmoothMover, it, too, has access to this method.