Skip to content

A Java-Based Gravity Simulator where you can add planets and destroy solar systems!

Notifications You must be signed in to change notification settings

ShrihanSolo/GravitySim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ed7d7d4 · May 19, 2024

History

3 Commits
May 19, 2024
May 19, 2024

Repository files navigation

GravitySim

By: Shrihan Agarwal

A Java-Based Gravity Simulator where you can add planets and destroy solar systems!

Screenshot 2024-05-19 at 12 01 00 AM

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.

Running

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

Controls

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!

About

A Java-Based Gravity Simulator where you can add planets and destroy solar systems!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published