{"id":20497974,"url":"https://github.com/mimisukemaster/simulation-of-universal-gravitation","last_synced_at":"2025-04-13T18:41:38.628Z","repository":{"id":52573597,"uuid":"359138991","full_name":"mimisukeMaster/Simulation-of-Universal-Gravitation","owner":"mimisukeMaster","description":"Simulation of universal gravitation using compute shader (GPGPU) in Unity / compute shaderによる万有引力のシミュレーション","archived":false,"fork":false,"pushed_at":"2025-02-09T08:34:07.000Z","size":94261,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T09:22:33.857Z","etag":null,"topics":["computeshader","computeshaders","gpgpu","gpgpu-physics","planet","simulation","simulator","solar-system","unity","universal-gravitation","universe"],"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/mimisukeMaster.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-18T12:38:34.000Z","updated_at":"2025-03-20T08:00:35.000Z","dependencies_parsed_at":"2024-08-01T19:09:59.340Z","dependency_job_id":null,"html_url":"https://github.com/mimisukeMaster/Simulation-of-Universal-Gravitation","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimisukeMaster%2FSimulation-of-Universal-Gravitation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimisukeMaster%2FSimulation-of-Universal-Gravitation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimisukeMaster%2FSimulation-of-Universal-Gravitation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimisukeMaster%2FSimulation-of-Universal-Gravitation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mimisukeMaster","download_url":"https://codeload.github.com/mimisukeMaster/Simulation-of-Universal-Gravitation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248764376,"owners_count":21158074,"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":["computeshader","computeshaders","gpgpu","gpgpu-physics","planet","simulation","simulator","solar-system","unity","universal-gravitation","universe"],"created_at":"2024-11-15T18:12:39.766Z","updated_at":"2025-04-13T18:41:38.621Z","avatar_url":"https://github.com/mimisukeMaster.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simulation-of-Universal-Gravitation\n\u003cbr\u003e\u003cp align=\"left\"\u003e\n    [\u003cimg src=\"https://img.shields.io/github/stars/mimisukeMaster/Simulation-of-Universal-Gravitation\"\u003e](https://github.com/mimisukeMaster/Simulation-of-Universal-Gravitation/stargazers)\n    [\u003cimg src=\"https://img.shields.io/badge/PRs-welcome-orange?\u0026logo=github\"\u003e](https://github.com/mimisukeMaster/Simulation-of-Universal-Gravitation/pulls)\n    [\u003cimg  src=\"https://img.shields.io/github/license/mimisukeMaster/Simulation-of-Universal-Gravitation\"\u003e](https://www.apache.org/licenses/)\n    \u003cimg src=\"https://img.shields.io/badge/made with-Unity2023.3.x-blue.svg?\u0026logo=unity\"\u003e\u003cbr\u003e\n    \u003cimg src=\"https://img.shields.io/github/repo-size/mimisukeMaster/Simulation-of-Universal-Gravitation?color=ff69b4\"\u003e\n    [\u003cimg src=\"https://img.shields.io/static/v1?logo=visualstudiocode\u0026label=\u0026message=Open%20in%20Visual%20Studio%20Code\u0026labelColor=2c2c32\u0026color=007acc\u0026logoColor=007acc\"\u003e](https://open.vscode.dev/mimisukeMaster/Simulation-of-Universal-Gravitation)\n    \u003c/p\u003e\n\n\n## Description\nThis repo is a sample project that simulates universal gravitation in Unity.\n\nThe main process is the calculation of the universal gravitation and first cosmic velocity based on physical formulae.\n\n## Environments\n### Unity version: Unity2023.3.21 LTS\n\n\n## About [SimpleScriptScene](/Assets/Scenes/SimpleScriptScene.unity)\nThis scene simulates only the state of universal gravitation between objects.\u003cbr\u003e\n\nIf the force is very small due to mass, universal gravitational constant, etc., adjust the value of the parameter `COEFFICIENT` in the [UniversalGravitationController.cs](/Assets/Scripts/MainScripts/UniversalGravitationController.cs) from the inspector view accordingly.\n\n\n## About [DemoScene](/Assets/Scenes/Demo/DemoScene.unity)\nIn addition to simulating universal gravitation, this scene reproduces a pseudo-solar system by giving an object an initial velocity at first cosmic speed.\u003cbr\u003e\n\nThe initial velocity given to the comet is calculated separately in [CometLauncher](/Assets/Scripts/DemoScripts/CometLauncher.cs), taking an appropriate value between the first cosmic velocity given to the planet and the second cosmic velocity at which it flies away from the star. This can be adjusted with the parameter `COMET_COEFFICIENT` in the [CometLauncher.cs](/Assets/Scripts/DemoScripts/CometLauncher.cs) from the inspector view accordingly.\n\n**ATTENTION:**\n- The sun's mass must be very large beyond the upper limit of Rigidbody.mass or it will move under the effect of the planets, so alternatively, the sun's Rigidbody.isKinematic is set to true.\n- The reason why the tracks are not neat and errors occur is that the distance between the planets is much closer than it actually is, and they are attracted to each other, which affects the direction of travel more greatly.\n- As this is only a simplified simulation, the planetary rotations, inclination of the orbital planes, mass and distance ratios between the planets, etc. are **not reproduced or correct** in this project.\n\n\n## LICENSE\nThis project is under the **[MIT License](LICENSE)**.\u003cbr\u003e\n\nAdapted from wikipedia:\n\u003e *Permission is hereby granted, free of charge, to deal in this  software on an unrestricted basis. However, the copyright notice and this permission notice must appear on all copies or substantial portions of the software.\nThe author or copyright holder assumes no responsibility for the software.*\n\n## Author\n みみすけ名人 mimisukeMaster\u003cbr\u003e\n\n [\u003cimg src=\"https://img.shields.io/badge/-X-X.svg?style=flat-square\u0026logo=X\u0026logoColor=white\u0026color=black\"\u003e](https://twitter.com/mimisukeMaster)\n[\u003cimg src=\"https://img.shields.io/badge/-ArtStation-artstation.svg?\u0026style=flat-square\u0026logo=artstation\u0026logoColor=blue\u0026color=gray\"\u003e](https://www.artstation.com/mimisukemaster)\n[\u003cimg src=\"https://img.shields.io/badge/-Youtube-youtube.svg?\u0026style=flat-square\u0026logo=youtube\u0026logoColor=white\u0026color=red\"\u003e](https://www.youtube.com/channel/UCWnmp8t4GJzcjBxhtgo9rKQ)\n\n## Credits\nImported from an website or AssetStore:\n- https://www.solarsystemscope.com/textures\n- http://www.planetaryvisions.com/Texture_map.php?pid=206\n- https://assetstore.unity.com/packages/2d/textures-materials/sky/skybox-series-free-103633\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmimisukemaster%2Fsimulation-of-universal-gravitation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmimisukemaster%2Fsimulation-of-universal-gravitation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmimisukemaster%2Fsimulation-of-universal-gravitation/lists"}