{"id":26375123,"url":"https://github.com/astrogeekdk/starship-simulator","last_synced_at":"2026-05-11T07:46:02.225Z","repository":{"id":279273839,"uuid":"938278111","full_name":"astrogeekdk/Starship-Simulator","owner":"astrogeekdk","description":"A Starship Simulator and Game written for the Web in Three.js","archived":false,"fork":false,"pushed_at":"2025-03-12T17:14:08.000Z","size":60463,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T12:24:14.732Z","etag":null,"topics":["game","rocket","simulator","threejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/astrogeekdk.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":"2025-02-24T17:44:30.000Z","updated_at":"2025-03-12T17:14:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e77ae66-9bd2-4bb9-be77-2ee90cbdb5ff","html_url":"https://github.com/astrogeekdk/Starship-Simulator","commit_stats":null,"previous_names":["astrophy-geek/starship-simulator","astrogeekdk/starship-simulator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/astrogeekdk/Starship-Simulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astrogeekdk%2FStarship-Simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astrogeekdk%2FStarship-Simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astrogeekdk%2FStarship-Simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astrogeekdk%2FStarship-Simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/astrogeekdk","download_url":"https://codeload.github.com/astrogeekdk/Starship-Simulator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astrogeekdk%2FStarship-Simulator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263493227,"owners_count":23475159,"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":["game","rocket","simulator","threejs"],"created_at":"2025-03-17T02:15:57.977Z","updated_at":"2026-05-11T07:46:02.219Z","avatar_url":"https://github.com/astrogeekdk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rocket Launch Simulator\n\nA nice little physics-based rocket launch simulation built using Three.js and Cannon.js - that runs on the browser! \n\nThe rocket model I used is SpaceX's iconic Starship - which I am so obsessed with - those 33 Raptors!\n\nThis simulator features a realistic launch sequence, gravitational dynamics, thrust vectoring, stage separation, Return-to-Launch-Site (RTLS) and in progress Mechazilla catch capabilities.\n\n\nHere is a sneak peek, tell me it isn't beautiful !?\n\n![Starship in Orbit](./simulator.png)\n\n## Overview\n\nThis simulator 'replicates' the dynamics of a launch-to-orbit mission, with gravitational force modeling, thrust vectoring, and control Systems to achieve realistic flight behavior. \n\nAn 8K high-resolution Earth texture, a real Milky Way starmap, a nice Starship model (credits pending), and even an particle system for thrust visualization have been used!\n\n### Features\n- **Cannon.js** physics engine\n- **Rendering** with Three.js, with an 8K Earth texture, a real Milky Way starmap, and a Starship model.\n- **Gravitational Model**: Implementation of gravitational force to simulate realistic orbital mechanics.\n- **Thrust Vectoring**: Simulated via `applyLocalForce` at the booster's base\n- **Particle Effects**: Thrust visualization using particle systems.\n- **Control Systems**: Basic algorithms for attitude control and trajectory changes.\n\n\n## Launch Sequence\n1. **Launch**: Full thrust is applied via `applyLocalForce` at the booster's base, simulating the combined output of 33 Raptor engines.\n2. **Slow Coasting** via `applyLocalForce(0, slowCoastForce, mainThrust)`\n3. **Stage Separation**: At approximately 60 km altitude separating Starship from the Super Heavy Booster.\n4. **Starship Orbit Insertion**: Simulated using $`F = m \\frac{\\Delta v}{\\Delta t}`$ to achieve orbital velocity, with basic control system for nose alignment along the velocity vector.\n5. **Booster Boostback Burn**: Used quaternion 'slerp' ;) for booster reorientation and descent (for now!)\n6. **Return-to-Launch-Site (RTLS) and Catch**: In progress!\n\n\n## Accuracy and Realism\n\nTried to make it super real! So used real parameters:\n- **Masses**: Super Heavy Booster at 3000 metric tons (fully fueled), Starship at 2000 metric tons (fully fueled).\n- **Thrust**: Simulated a total of 70,000 kN thrust - total from 33 Raptors!\n- Scaled the 3d models so as to match ~120m height\n- Even added a model of launch tower\n- Added 4 different cameras\n- Slider to change the simulation speed\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastrogeekdk%2Fstarship-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastrogeekdk%2Fstarship-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastrogeekdk%2Fstarship-simulator/lists"}