Gravity Simulator
this is a gravity simulator
I thought it would be cool to be able to mess around with gravity and experiment, so I made this simple gravity simulator.
Features
- Scientifically accurate (for the most part)
- Interactive object placement and deletion
- Customizable gravity values and object masses
- Tick warping
- Hotkeys (G for gravity spot, O for object, and X for delete)
A few notes:
The objects do not collide with each other and instead pass through each other, and the gravity spots are fixed (not influenced by gravity)
Simulation might be a bit buggy on very small screens because of how the scaling works but for the most part it's fine
If you zoom out a ton it's laggy
If you hold an object to two grey spots you'll get a perfect orbit. (Really nice and satisfying by the way. Great job!)
how do control the number of mass
Is this dead yet?
WHAT WILL HAPPEN
Why don’t you take this to the next level and make a quantum simulator?
You should try to make a 3D version
When I set the gravity to max, I created an orbit where the blue ball goes around in an oval pattern, but then it moves just enough that it creates a spirograph!! Imagine that? Having a year within a year :D
welp XD
It is like universe sandbox.
Nice. You should also look into matter.js
Very nice!
cool
its the most beautiful thing i have ever seen. been looking at this for hours now
wow!
so satisfying bro
This file cannot be displayed:
my planet is just gaining infinite energy
This looks super cool it doesn't look like you used HTML it's just so cool.
very well done
Mine won't load. =[ Probably my AWFUL school connection
cooli
yo i just made a binary figure 8 :O
Nice. Can you add an option to adjust the length of the trail? I want to see the lengths of my comets!
an option
super cool!
Why is everyone better at programming than me lol.
welcome to the club.
@ZavexeonI am not that good at coding myself