How kierankristian/star-map-navigation works
This Unity project is a procedurally generated star-map navigation simulation. The user selects origin and destination stars and sets travel constraints; Dijkstra pathfinding finds a viable shortest route, which is highlighted in the scene and followed by a spaceship. Galaxy generation, star selection, route solving, and visual feedback are distinct stages. The README documents these responsibilities and relationships; source excerpts were not available, so internal call ownership beyond those documented behaviors is not inferred.
Main entry points: Spaceship Script.cs Spaceship · Star Selector.cs Star Selector · DijkstraPathfinding.cs Dijkstra Solver · StarMapScene.unity Star Map Scene
Components 17
Galaxy Generation
- Star Spawner
Assets/Scripts/Star Spawner.cs - Star Data
Assets/Scripts/Custom Classes/Star.cs
Route Navigation
- Star Selector
Assets/Scripts/Star Selector.cs - Dijkstra Solver
Assets/Scripts/DijkstraPathfinding.cs - Star Path
Assets/Scripts/Custom Classes/Star Path.cs - Route Mesh
Assets/Scripts/Custom Classes/RouteMesh.cs - Spaceship
Assets/Scripts/Spaceship Script.cs
Scene Presentation
- Constraint UI
Assets/Scripts/Lerp Scripts/SidePanelManager.cs - Star Map Scene
Assets/StarMapScene.unity - Star And Route Prefabs
Assets/Prefabs - Sound Effects
Assets/SFX - Space Skybox
Assets/Materials/SpaceSkybox.mat
Controls And Feedback
- Simulation Control
Assets/Scripts/Gamemode Manager.cs - Input Actions
Assets/Inputs.inputactions - Camera Controls
Assets/Scripts/Camera Controls/FreeLookFlyCamera.cs - Lerping
Assets/Scripts/Lerp Scripts/Lerping.cs
Other components
- User
Connections 16
- User → Star Selector: selects stars
- User → Constraint UI: sets constraints
- User → Camera Controls: controls view
- User → Simulation Control: exits with Escape
- Star Spawner → Star Data: generates stars
- Star Selector → Dijkstra Solver: requests route
- Dijkstra Solver → Star Path: calculates path
- Dijkstra Solver → Route Mesh: highlights route
- Spaceship → Star Path: follows path
- Spaceship → Route Mesh: marks travelled routes
- Spaceship → Lerping: lerps movement
- Star Map Scene → Star And Route Prefabs: uses scene assets
- Star Map Scene → Space Skybox: sets skybox
- Spaceship → Sound Effects: plays boost sound
- Star Selector → Sound Effects: plays UI feedback
- Input Actions → Camera Controls: drives controls