Labs · Oscillation

Pressure Soft Bodies (Jelly)

Pressure Soft Bodies (Jelly) simulation

A soft body is a ring of point masses joined by springs, with a twist: the gas inside pushes outward. Each frame the enclosed area is computed (shoelace formula), and every edge is pushed along its outward normal with a force proportional to A₀ / A. Squashing a blob raises its "pressure", so it bulges back.

Blobs also collide: any point that ends up inside another blob is pushed back to its surface.

Grab a blob and throw it at the others. Then set pressure to 0 and they collapse like deflated balloons.

Controls

Evolved from Springs (Hooke's Law).

Evolved into Soft-Body Lattices.