Physics in Processing.
Read more here: https://www.marginallyclever.com/2021/11/friday-facts-7-a-2d-physics-engine-in-processing-java-and-the-sunk-cost-fallacy/
Select different demos from the drop-down list. Press 'g' to toggle gravity. Press 'f' to pause/unpause. Press spacebar while paused to step once. mouse wheel click + drag: move camera mouse wheel roll: zoom camera mouse left + drag: create rubber band between cursor and body at start of action. mouse right + drag: create impulse force the moment button is released.
Make it even better. We welcome your input. Join the conversation at https://discord.gg/Q5TZFmB
Processing from http://www.processing.org
Requires ControlP5 library, which can be installed from within the app. Sketch > Import Library > Add Library > seach "ControlP5".