KQ-139 · GRAVITY/WELL

Gravity Well

Bodies orbit a gravity well that follows the pointer — a softened pull holds them in ellipses, motion trails streaking their paths; flick the well fast and a stream slingshots free before the field draws it back.

KQ-139 · GRAVITY/WELL

ORBIT FIELD · 120 BODIES

KQ-139

Field bound — bodies in orbitGravity well orbit field of 120 bodies

FIELD · BOUND

Draw the well around - fling fast to slingshot the bodies free.

Install

One command — the source lands in your repo. Or copy it from the Code tab.

$ pnpm dlx shadcn@latest add @kinetiq/gravity-well

Props

PropTypeDefaultDescription
countnumber120Orbiting body count, capped for cheapness.
onFling(flung) => voidFires when a fling slings bodies free and when it settles.
heightnumber300Field height in px.