Skip to content

Commit

Permalink
updated gifs
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhan45 committed Feb 2, 2020
1 parent 55da3ce commit 0b0865e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ Gravity simulator using Newton's Law of Universal Gravitation, made to teach phy

The goal is for this to run on the web and to otherwise be as easily accessible as possible.

Right click to show the GUI and press escape to hide it. Right clicking on a body shows a body-specific GUI.
Right click a body to edit it and graph its properties.

The GUI uses `imgui-rs`; using it you can create new bodies, adjust existing bodies, or change variables like the timestep.

# gifs

Expand All @@ -18,12 +20,15 @@ There are previews/predictions when you create a new body
The orbit changes due to integration error, but the timestep is adjustable
![](flawed_orbit.gif)

The GUI uses `imgui-rs`; using it you can create new bodies, adjust existing bodies, or change variables like the timestep.
You can make trails relative to the selected object.
![](relative_trail.gif)

Negative mass and negative timestep are cool

![](cluster.gif)

You can save and load preset scenarios; binary and nested systems are included.
![](saveload.gif)

# details

Made with [`ggez`](https://github.com/ggez/ggez) and [`specs`](https://github.com/amethyst/specs)
Expand Down
Binary file modified orbit.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added relative_trail.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added saveload.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/main_state/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ pub fn scale_pos(point: impl Into<Point>, coords: graphics::Rect, resolution: Ve
np
}

//TODO: move mass, rad, selected_entity, hidpi_factor, and creating to specs resources
pub struct MainState<'a, 'b> {
pub world: World,
pub main_dispatcher: Dispatcher<'a, 'b>,
Expand Down

0 comments on commit 0b0865e

Please sign in to comment.