{"id":26470247,"url":"https://github.com/1180779/unrealistic-gravity-box","last_synced_at":"2026-04-13T02:12:17.580Z","repository":{"id":280163041,"uuid":"895747168","full_name":"1180779/unrealistic-gravity-box","owner":"1180779","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-01T16:45:41.000Z","size":1871,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T17:34:03.985Z","etag":null,"topics":["cpp","cuda","opengl"],"latest_commit_sha":null,"homepage":"","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/1180779.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":"2024-11-28T20:17:08.000Z","updated_at":"2025-03-01T16:45:45.000Z","dependencies_parsed_at":"2025-03-01T17:44:10.193Z","dependency_job_id":null,"html_url":"https://github.com/1180779/unrealistic-gravity-box","commit_stats":null,"previous_names":["1180779/unrealistic-gravity-box"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1180779%2Funrealistic-gravity-box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1180779%2Funrealistic-gravity-box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1180779%2Funrealistic-gravity-box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1180779%2Funrealistic-gravity-box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1180779","download_url":"https://codeload.github.com/1180779/unrealistic-gravity-box/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244485983,"owners_count":20460588,"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":["cpp","cuda","opengl"],"created_at":"2025-03-19T18:36:50.661Z","updated_at":"2026-04-13T02:12:12.532Z","avatar_url":"https://github.com/1180779.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unrealistic gravity box\n\nA simple cuda openGL interop project simulating an unrealistic gravity box. \n\n## Why unrealistic?\nEnergy is never lost in the simulation. All collisions are treated as perfect elastic collisions. \n\nEnergy loss is easy to add and can be done by few manipulations in the code base. \n\n## Settings\n\nProject supports a few user provided settings:\n- number of particles\n- maximum starting veclocity in x and y axis (in some arbitrary units - check code for details)\n- acceleration `g`\n- particles radius\n\nSome of the notable limitations include: \n- all particles have the same radius\n\nThe settings can be loaded from file located in the same directory as the executable. \nExample [configuration](./Cuda_OpenGL_GLFW_glad_test/config.txt) is provided. \n\n## Examples\n\nCheck [samples](./samples) directory for the following examples (.mp4)\n\n- 15 big particles\n![](./samples/sample-15.mp4)\n![](./samples/sample-15.jpg)\n\n- 100 000 small particles (chaos)\n![](./samples/sample-100000.mp4)\n![](./samples/sample-100000.jpg)\n\n## FAQ\n\n**Q: Why is the project folder named \"Cuda_OpenGL_GLFW_glad_test\"?**\n\n**A:** It was a working name in early testing. Due to Visual Studio having issues with folder renaming I have not changed it. \n\n**Q: It seems like the particles are accelerating?**\n\n**A:** It does seem like this is the case. I have no idea why thought. Feel free to investigate if you feel like it. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1180779%2Funrealistic-gravity-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1180779%2Funrealistic-gravity-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1180779%2Funrealistic-gravity-box/lists"}