{"id":16576314,"url":"https://github.com/mkhan45/gravity-sim-rs","last_synced_at":"2025-10-29T04:32:01.586Z","repository":{"id":38213217,"uuid":"174908916","full_name":"mkhan45/gravity-sim-rs","owner":"mkhan45","description":"Gravity simulator using Newton's Law of Universal Gravitation","archived":false,"fork":false,"pushed_at":"2022-06-08T22:35:51.000Z","size":44089,"stargazers_count":5,"open_issues_count":5,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T22:12:35.709Z","etag":null,"topics":["ecs","ggez","gravity","gravity-sim","rust","rust-lang","simulation","simulator","specs"],"latest_commit_sha":null,"homepage":"https://mkhan45.github.io/gravity-sim-rs/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkhan45.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-11T02:10:16.000Z","updated_at":"2022-08-06T11:30:17.000Z","dependencies_parsed_at":"2022-09-04T14:51:52.089Z","dependency_job_id":null,"html_url":"https://github.com/mkhan45/gravity-sim-rs","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkhan45%2Fgravity-sim-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkhan45%2Fgravity-sim-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkhan45%2Fgravity-sim-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkhan45%2Fgravity-sim-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkhan45","download_url":"https://codeload.github.com/mkhan45/gravity-sim-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238768422,"owners_count":19527197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ecs","ggez","gravity","gravity-sim","rust","rust-lang","simulation","simulator","specs"],"created_at":"2024-10-11T22:07:53.279Z","updated_at":"2025-10-29T04:32:00.059Z","avatar_url":"https://github.com/mkhan45.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gravity-sim\n## Superseded by https://github.com/mkhan45/gravity-sim-v2\n\nN body gravity sim with rust and `ggez`, made to learn rust\n\nInitially written with OOP, made a new version with `specs` that runs about 20% better on my desktop PC, but slightly worse on my laptop. Maybe because it parallelizes a lot more?\n\nWeb port made with quicksilver, lots of features missing:\n\nhttps://mkhan45.github.io/gravity-sim-rs/\n\n![](preview_new.gif)\n\n\n## Controls\n\nArrow keys to move\n\nScroll to zoom in/out\n\nQ/A to increase/decrease radius of next placed body\n\nW/S to increase/decrease density (try making it negative)\n\nE/D to increase/decrease trail length (removing trails increases performance by a lot)\n\nX/Z to increase/decrease prediction speed, setting it to 0 turns of predictions.\n\nLeft click to place a body, dragging before releasing makes an initial velocity vector.\n\nRight click over a body to delete it.\n\nG creates a 10x10 grid of bodies with the specified radii and densities.\n\nR to reset.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkhan45%2Fgravity-sim-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkhan45%2Fgravity-sim-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkhan45%2Fgravity-sim-rs/lists"}