Skip to content

adamheins/revolutions

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
css
 
 
js
 
 
 
 
 
 
 
 

Revolutions

A simple simulation of bodies with gravitational attraction and elastic collisions.

In this simulation, the gravitational constant, G, is not the same as it is in the real world. This is to make both its value and the required mass values for the bodies easier to work with.

If you want to play with this yourself, clone the repository and open the index.html file in a browser. To change the properties of the bodies, edit the code in the getBodies function.

A demo can be found here.

About

A simulation of bodies with gravitational attraction and elastic collisions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published