Simple physics engine. Run in turbo mode. You can drag the rectangle around. The physics stops if the rectangle is touching your mouse. (Also, its better if you have a slow computer.)
Learned from Funut Tutorials. https://www.youtube.com/watch?v=G4YrfDmxf8c Link to video ^