Elastic String Field

group .........
3D and WebGL scenes

── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────

A field of fat rubber ribbons that toss themselves in, shove each other apart, and settle into a packed arrangement. Each ribbon is thirty five mass points wired by two spring sets: structural springs between neighbours hold its length, and bending springs between every point and the one two along resist folding, which is what keeps it reading as a stiff band instead of a limp chain. Every point in the field also repels every other point inside the repulsion radius, walls included, so ribbons never overlap and the field distributes itself along its own cushions. A ribbon is born compressed, its points a tenth of a rest length apart along a sine wave, so the springs unpack it into a loop the moment it spawns and it arrives with a toss velocity in a random direction. New ribbons keep dropping wherever there is clearance until the field is full. Press an empty spot to add one, press a ribbon to drag it. Canvas 2D with no physics library.

── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────

  • * Two spring sets, not one

    Neighbour springs alone give a limp chain that collapses into a knot. The second set runs between every point and the one two along, and resisting that longer span is what stops the ribbon folding onto itself. Bend resistance is the dial between a noodle and a stiff band.

  • * A ribbon is tossed by its own compression

    Points spawn a tenth of a rest length apart along a sine wave, so a new ribbon is a coiled spring holding thirty five points on top of each other. The structural springs unpack it over the next few frames, which is where the flip and the loop come from. The toss velocity only decides which way it travels.

  • * Nothing collides, everything cushions

    There is no contact test. Points inside the repulsion radius push apart with a force that falls off linearly to zero at the edge, and the walls apply the identical cushion inward. Ribbons never overlap because they never get close enough to, and the field spaces itself without any packing pass.

  • * Frame-capped on purpose

    Forces are added straight to velocities in pixels per frame with no delta time anywhere, so the source's 60fps cap is part of the physics. The loop reproduces that gate rather than running free, or a 120Hz display would run the field at double speed.