WEBGL · LIVE
Squish / Soft-body lab

Melonas jelly.

A slice of summer that wobbles back.

HandGrab anywhere, at the tip, the edge or right in the flesh, and pull. While holding, twist with the scroll wheel or a second finger.

Mass–
Volume–
Motion–
Pieces1
Illustrative scale: 1 unit = 4 cm, jelly at 1.2 g/cm³. Volume and energy are summed over all tetrahedra and points every frame. · © 2026 Thorben Hiebsch
How it works

The fruit is made of a few hundred points joined into tetrahedra. Every tetrahedron wants to keep its rest volume, every edge its length. The wobble comes from solving these wishes softly rather than exactly.

Each frame the simulation runs ten small substeps (XPBD, “Extended Position Based Dynamics”). Firmness sets how much edges give way. Damping calms motion inside a piece without slowing its fall.

The knife lays a plane through your cut. Every cell is assigned to one side and shared points on the cut face are duplicated. That gives real, separate pieces with a fresh cut surface.

Colour, seeds and rind are not painted on; they depend on the position inside the fruit. That is why every cut face looks like real flesh.