loading code fetching the highlighted snippet
Each button flings the ball with a different velocity. Inertia decelerates it, and a spring pushes it back inside the track when it would cross the wall.
power × velocity before it stops.min/max hand off to a boundary spring.modifyTarget snaps the resting point to a grid.