ScratchData LogoScratchData
Back to colinomc's profile

Swinging Pendulum Physics

COcolinomc•Created January 21, 2023
Swinging Pendulum Physics
7
5
31 views
View on Scratch

Instructions

A super simple way to implement accurate swinging physics in your games Drag the mouse around to swing the ball. Mode 1 is pendulum physics where the ball stays a set distance from the mouse at all times Mode 2 is string physics, so the ball can come closer than the length of the string, but not further I used this same technique to make this grappling hook puzzle game: https://scratch.mit.edu/projects/753106134/ And this game about fishing: https://scratch.mit.edu/projects/791433170/ Feel free to use this code in your own projects!

Project Details

Project ID791475212
CreatedJanuary 21, 2023
Last ModifiedMay 27, 2023
SharedJanuary 21, 2023
Visibilityvisible
CommentsAllowed