By: Shrihan Agarwal
A Java-Based Gravity Simulator where you can add planets and destroy solar systems!
This was initially created as an extension project of the Berkeley CS 61B Gravity Simulation project - my first project run in Java. It uses tools from the Princeton StdDraw library, and a skeleton from the 61B.
Make sure you have an updated version of Java or a JDK runtime. You can run it by double clicking the .jar file or otherwise:
java -jar NBodyExtreme.jar
Video Tutorial: https://www.youtube.com/watch?v=ddBKbhj82hI
Cursor+Click: Pause time and place a massive object.
W/S: Increase or decrease mass of inserted object by a factor of 10.
Click Again: Resume time, and slingshot the planet!