This example is part of the Fisica library.

Densities by Ricard Marxer This example shows how the density works. The density determines the mass per area of a body. In this example we show a column of balls all of same area and increasing densities from 0.1 to 0.9. These balls will collide against another column of balls all with the same density of 0.9. We can observe the different behavior of the collisions depending on the density. Note that a density of 0.0 corresponds to a mass o 0 and the body will be considered static.

Source code: Densities

Built with Processing

This browser does not have a Java Plug-in.
Get the latest Java Plug-in here.