Jello-like deformable cube simulated as a $16^3$ lattice of spring-connected vertices
This program simulates a block of jello by discretizing it into a 16×16×16 grid of vertices connected by springs along gridlines, face diagonals, space diagonals, and second-nearest neighbors. Each spring has potential energy V=21k(x−Δ)2 where Δ is the rest length in the undeformed cube, and the full system of thousands of coupled oscillators evolves under Newtonian mechanics.
Spring drag forces proportional to the relative velocity of connected vertices provide dissipation and numerical stability. The initial condition can be reset via the menu. The cube deforms, bounces, and wobbles in a manner resembling a soft elastic solid.
Controls: Click and drag to orbit, scroll to zoom.