Experiment 10 · Expert · The finale

Cursor Gravity — a solar system to command.

A tiny system of shapes, chips and cards. Your cursor is the sun — objects orbit it by mass, some eager, some indifferent. Move it and watch them tumble.

Technique · Cursor gravity / physics Hint · Orbit the field Level · 10 / 10
Demo 10 · Cursor Gravity
Gravity wellmass 3.2
Cursor
Mass
Orbit
Technique

Mass attracts mass — with springs and damping

Within 190px of the pointer an inverse-square pull attracts each body by 1/mass; a mild repulse stops them stacking on the cursor, and a spring pulls every body back to its anchor.

◉

Mass decides behaviour

The heavy card (mass 3.2) resists the pull; the light dot-accent (mass 0.3) gets flung around wildly. Chips and rings each have their own gravity personality.

⇆

Idle drifting

When the cursor leaves, bodies don't snap — they wobble back to their anchors with per-body phases and amplitudes, so the scene stays alive on its own.

You made it

All 10 experiments complete 🎉