Java Reference
In-Depth Information
Figure 10-1. Particles as bodies
Figure 10-1 shows a bunch of falling particles, and as they fall they bounce off each other and the
line of dots at the bottom of the screen. There are two types of particles being emitted—one is big and
puffy and the other is smaller.
In Figure 10-2 we see that the two different particles are simulating different aspects of a shower of
sparks.
Search WWH ::




Custom Search