{"id":24544379,"url":"https://github.com/iostapyshyn/gravity","last_synced_at":"2026-05-20T02:46:44.789Z","repository":{"id":133648769,"uuid":"153314130","full_name":"iostapyshyn/gravity","owner":"iostapyshyn","description":"Simulation of Newton's law of universal gravitation.","archived":false,"fork":false,"pushed_at":"2022-04-04T17:17:59.000Z","size":46,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T20:37:05.944Z","etag":null,"topics":["c","glfw","gravity","newton","opengl","physics","simulation"],"latest_commit_sha":null,"homepage":"","language":"C","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/iostapyshyn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-10-16T16:00:53.000Z","updated_at":"2024-01-06T17:32:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"3824fd83-f714-49e7-a1eb-4b9f2b439564","html_url":"https://github.com/iostapyshyn/gravity","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iostapyshyn%2Fgravity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iostapyshyn%2Fgravity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iostapyshyn%2Fgravity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iostapyshyn%2Fgravity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iostapyshyn","download_url":"https://codeload.github.com/iostapyshyn/gravity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243842551,"owners_count":20356671,"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":["c","glfw","gravity","newton","opengl","physics","simulation"],"created_at":"2025-01-22T20:29:47.810Z","updated_at":"2026-05-20T02:46:39.764Z","avatar_url":"https://github.com/iostapyshyn.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gravity\nSimulation of Newton's law of universal gravitation written in C + fixed function pipeline OpenGL.\n\n![program window](screenshot.png?raw=true)\n\n## Usage\n### Compiling\n\n```\nmkdir build\ncd build\ncmake ..\nmake\n```\n\nCompilation is done using CMake.\nGLFW and OpenGL libraries are required to compile this program.\n\n * [GLFW](http://www.glfw.org): Open Source, multi-platform library for OpenGL, OpenGL ES and Vulkan development on the desktop.\n \n### Controls\n * Dragging mouse creates new object\n * `Z`: Decrease mass of the new object\n * `X`: Increase mass of the new object\n * `C`: Clear the objects array\n * `P`: Pause the simulation\n * `D`: Remove object closest to the mouse cursor\n * `A`: Slow down the simulation\n * `S`: Speed up the simulation\n * `ESC`: Quit\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiostapyshyn%2Fgravity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiostapyshyn%2Fgravity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiostapyshyn%2Fgravity/lists"}