{"id":49155477,"url":"https://github.com/wendtpiotr/solar-system-gravitional-forces-simulation","last_synced_at":"2026-07-11T09:32:02.317Z","repository":{"id":320007794,"uuid":"1080433661","full_name":"wendtpiotr/solar-system-gravitional-forces-simulation","owner":"wendtpiotr","description":"A real-time simulation of planets, moons, and orbital mechanics using Newtonian physics and N-body gravitational interactions.","archived":false,"fork":false,"pushed_at":"2025-10-21T11:44:46.000Z","size":63573,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-22T08:41:33.587Z","etag":null,"topics":["game-development","gravity","nbody-gravity-simulation","newton","physics","physics-simulation","planets","science","solar-system"],"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/wendtpiotr.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-21T11:14:16.000Z","updated_at":"2025-12-27T17:09:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"2de85d4c-e213-47e2-a9fc-081860c45bf8","html_url":"https://github.com/wendtpiotr/solar-system-gravitional-forces-simulation","commit_stats":null,"previous_names":["pietras333/solar-system-gravitional-forces-simulation","wendtpiotr/solar-system-gravitional-forces-simulation"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wendtpiotr/solar-system-gravitional-forces-simulation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wendtpiotr%2Fsolar-system-gravitional-forces-simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wendtpiotr%2Fsolar-system-gravitional-forces-simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wendtpiotr%2Fsolar-system-gravitional-forces-simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wendtpiotr%2Fsolar-system-gravitional-forces-simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wendtpiotr","download_url":"https://codeload.github.com/wendtpiotr/solar-system-gravitional-forces-simulation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wendtpiotr%2Fsolar-system-gravitional-forces-simulation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35358880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-11T02:00:05.354Z","response_time":104,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["game-development","gravity","nbody-gravity-simulation","newton","physics","physics-simulation","planets","science","solar-system"],"created_at":"2026-04-22T08:32:11.349Z","updated_at":"2026-07-11T09:32:02.311Z","avatar_url":"https://github.com/wendtpiotr.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌌 Physics-Based Solar System Simulation\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"/solar_system_preview.png\" alt=\"Solar System Preview\" width=\"70%\"\u003e\n\u003c/div\u003e\n\n*A **real-time simulation** of planets, moons, and orbital mechanics using **Newtonian physics** and **N-body gravitational interactions**.*\n\n---\n\n## 🔬 Scientific Overview\n\nThis Unity project simulates celestial bodies based on **physics-based formulas**. It solves the **N-body problem** in real-time, allowing you to:\n\n- ✅ Calculate **mutual gravitational forces** between multiple bodies  \n- ✅ Predict **orbital paths** using **Euler integration**  \n- ✅ Visualize **runtime orbit predictions** dynamically  \n- ✅ Customize **planet and moon parameters**, including mass, radius, and initial velocity  \n\nThis system is ideal for **educational demonstrations**, research visualizations, or exploring classical mechanics phenomena such as **Mercury’s orbital precession**.\n\n---\n\n## 🌟 Key Features\n\n### Physics-Based Simulation\n- Implements Newton’s law of universal gravitation:  \n![Newton](https://github.com/user-attachments/assets/acf23792-27f3-4461-b199-76816a369b35)\n- Computes **gravitational acceleration** between all bodies at each timestep.\n- Updates **velocities and positions** in real-time using **Euler integration**.\n- Supports **multiple interacting bodies**, including planets, moons, and artificial objects.\n\n### **2. Orbit Prediction**\n- Predicts **future trajectories** for each body.\n- Visualizes predicted orbits with **LineRenderer**.\n- Supports **individual body preview** or **all-body orbit display**.\n\n### **3. Runtime Simulation**\n- Bodies move in real-time according to **physical forces**.\n- Adjustable **timeScale** to simulate faster or slower motion.\n- Works in both **Editor** and **Build** for consistent results.\n\n### **4. Customizable Bodies**\n- Configure **mass, radius, initial velocity**, and parent-child relationships (for moons).  \n- Moons automatically inherit **parent planet velocity** if assigned.  \n- Orbit trails can be assigned **distinct vibrant colors** for clarity.\n\n---\n\n## 🎬 Example Scenes\n\n\u003cdiv align=\"center\"\u003e\n\n### 🌞 Solar System\nFull solar system simulation with planets and orbit prediction.  \n\u003cimg src=\"https://github.com/user-attachments/assets/c3967040-159d-4805-ade5-0939e1cd8b59\" alt=\"Solar System Video\" width=\"90%\"\u003e\n\n### 🌑 Two Moons\nRealtime simulation of a planet with two moons showing gravitational interactions.  \n\u003cimg src=\"https://github.com/user-attachments/assets/56c5b18c-8b3a-487d-8276-81a395bb475b\" alt=\"Two Moons Video\" width=\"90%\"\u003e\n\n### ☿ Mercury Precession\nDemonstrates **precession of Mercury’s orbit** due to gravitational perturbations.  \n\u003cimg src=\"https://github.com/user-attachments/assets/97d6b7da-cfda-4151-8a99-283569723fa8\" alt=\"Mercury Precession Video\" width=\"90%\"\u003e\n\n\u003c/div\u003e\n\n---\n\n## ⚡ Getting Started\n\n### **Requirements**\n- Unity 2020.3 or higher  \n- Compatible with both **Editor** and **Build** environments\n\n### **Installation**\n```bash\ngit clone https://github.com/yourusername/PhysicsSolarSystem.git\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwendtpiotr%2Fsolar-system-gravitional-forces-simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwendtpiotr%2Fsolar-system-gravitional-forces-simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwendtpiotr%2Fsolar-system-gravitional-forces-simulation/lists"}