ScratchData LogoScratchData
Back to Jamulus's profile

Orbital Gravity

JAJamulus•Created September 29, 2013
Orbital Gravity
3
1
172 views
View on Scratch

Instructions

Click anywhere to place an object Click again to specify its velocity, the object will move towards where you click. If you click in the same place the velocity will be zero.# Input the mass of your new object If you placed an object with no velocity you will be asked if you want to make it stationary, thereby fixing it in place. Type 1 to fix the object, 0 to leave it mobile.

Description

After trawling scratch for a gravity simulator that could cope with an infinite* number of objects and failing, I decided to make my own and here it is. All object data is in lists so an infinite* number of objects are supported. I also designed it so that sprites could be attached to points to make it easy to repurpose for other uses. *Finite, but arbitrarily large Note that apart from the gravity, all physics simulation is awful. [There's an odd bug where static objects are ignored if there are more than 1 mobile object] *SPLAT!* bug squished :D

Project Details

Project ID12779001
CreatedSeptember 29, 2013
Last ModifiedOctober 10, 2013
SharedSeptember 30, 2013
Visibilityvisible
CommentsAllowed