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 orbit — Gravity 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
| Prop | Type | Default | Description |
|---|---|---|---|
| count | number | 120 | Orbiting body count, capped for cheapness. |
| onFling | (flung) => void | — | Fires when a fling slings bodies free and when it settles. |
| height | number | 300 | Field height in px. |