A collection of physics objects. Let's see how they move and interact with each other! Move the Ball (yellow): arrow keys or drag-drop Move the Heavy (grey): wasd or drag-drop Move the Magnet (red/blue): ijkl or drag-drop Toggle Attract/Repel: u Toggle On/Off: o Mouse over the gear to configure the friction and the velocity and acceleration of each ball.
A test of physics, movement, collisions, and magnetism- coded from scratch by @Cukee8 TO USE THESE SCRIPTS IN YOUR OWN PROJECT(S): Link to this project in your Notes and Credits section, crediting me for the physics engine. Feel free to post links in the comments to projects you make using these scripts! This was a great refresher on trig identities, geometric sequences, logarithms (because scratch doesn't have a pow(a,b) function), derivatives, and vector fields. Feel free to look through the code and ask questions in the comments about how a particular section works!