ScratchData LogoScratchData
Back to Cukee8's profile

Movement, Collision, Magnet Physics!

CUCukee8•Created February 8, 2022
Movement, Collision, Magnet Physics!
3
1
28 views
View on Scratch

Instructions

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.

Description

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!

Project Details

Project ID640894098
CreatedFebruary 8, 2022
Last ModifiedJune 24, 2024
SharedFebruary 9, 2022
Visibilityvisible
CommentsAllowed