{"id":19773608,"url":"https://github.com/ultraflame4/gravsim","last_synced_at":"2025-07-12T02:08:28.779Z","repository":{"id":202783381,"uuid":"707675141","full_name":"ultraflame4/GravSim","owner":"ultraflame4","description":"A simple n-body gravity simulation with balls","archived":false,"fork":false,"pushed_at":"2023-12-12T03:44:48.000Z","size":282,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T11:45:51.640Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ultraflame4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-20T12:14:07.000Z","updated_at":"2023-10-21T16:01:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"1dbae619-a712-4a37-8ad0-7cca9c3044af","html_url":"https://github.com/ultraflame4/GravSim","commit_stats":null,"previous_names":["ultraflame4/gravsim"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/ultraflame4/GravSim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ultraflame4%2FGravSim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ultraflame4%2FGravSim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ultraflame4%2FGravSim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ultraflame4%2FGravSim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ultraflame4","download_url":"https://codeload.github.com/ultraflame4/GravSim/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ultraflame4%2FGravSim/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262578149,"owners_count":23331568,"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":[],"created_at":"2024-11-12T05:10:21.881Z","updated_at":"2025-06-29T10:32:59.782Z","avatar_url":"https://github.com/ultraflame4.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GravSim [WIP]\nGravity simulation for circular objects using [Newton's law of universal gravitation](https://en.wikipedia.org/wiki/Newton%27s_law_of_universal_gravitation)\nand some other physics formulas\n\n\nhttps://github.com/ultraflame4/GravSim/assets/34125174/11dfd9a1-0f8b-4d17-b473-81c1e6b61f97\n\n\n![img.png](blob/img.png)\n\n## Downloads\nGet latest release from [releases](https://github.com/ultraflame4/GravSim/releases).\nYou can also install from itch.io https://notlivingstudios.itch.io/gravsim\n\n\u003ca href=\"https://notlivingstudios.itch.io/gravsim\" target=\"_blank\"\u003e\u003cimg src=\"https://static.itch.io/images/badge-color.svg\" \nalt=\"Available on itch.io\" height=\"60\"/\u003e\u003c/a\u003e\n\n## Controls\n[Space] - Pause \u003cbr/\u003e\n[W] - Move camera up \u003cbr/\u003e\n[A] - Move camera left \u003cbr/\u003e\n[S] - Move camera down \u003cbr/\u003e\n[D] - Move camera right \u003cbr/\u003e\n[Right Click + drag] Spawn object with velocity ( velocity depends on direction and distance of drag) \u003cbr/\u003e\n\n## Building\n\n### Prerequisites\nTo build this project, you will need:\n1. clang or a compiler with C++23 support (eg. clang)\n2. cmake version 3.26 and above\n3. ninja (or any other cmake supported build system)\n\n### Instructions\nThe following instructions will assume you are using `ninja` as your build system\n1. First install ninja. See [here](https://github.com/ninja-build/ninja/wiki/Pre-built-Ninja-packages) for instructions\n\n2. Secondly clone this repository and its submodules:\n```shell\ngit clone https://github.com/ultraflame4/GravSim.git --recursive --depth=1\n```\n2. Use cmake to generate project build files.\n```shell\ncmake -S . -B build -G Ninja\n```\n3. Build the project with.\n```shell\ncmake --build build\n```\n4. Run the executable `GravSim.exe` in the build folder\n\n## Notes:\n1. The collision physics is very buggy.\n\n~~2. Spawning too many bodies will make them disappear. I have no idea why.~~ fixed\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultraflame4%2Fgravsim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fultraflame4%2Fgravsim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultraflame4%2Fgravsim/lists"}