ECS N-Body Orbit Simulation
N-body orbital physics for planets for the Entity Component System (ECS). Simulate 1000s of planets, moons & asteroids in real-time with automatic orbit calculation, in-editor previews & collisions.
by Parallel Cascades
Price History +
ECS N-Body Simulation is a sample project with authoring components for setting up orbital simulation scenes with primary bodies and satellites - stars, gas giants, planets, moons, and asteroids, all affecting each other gravitationally and dynamically.
Using Unity's Data-Oriented Technology Stack (DOTS), this asset demonstrates high-performance gravitational physics through a clean, extensible ECS architecture.
🌟Key Features
- 🎯Automatic Orbit Calculation: With authoring components and editor systems, you can manually position celestial bodies in a scene, and the precise starting velocity and trajectory for a stable orbit will be calculated.
- 👁️In-Editor Orbit Preview: An Editor system simulates and renders orbit trajectories instantly as you modify the scene.
- 🌌Procedural Satellite Spawning: Procedurally generate complex scenes with a spawner authoring component that calculates nested orbits. Create gas giants with asteroid rings composed of hundreds of individual asteroids, all orbiting a central star.
- ✨ VFX Graph Integration: VFX Graph integration syncs with the ECS world to render beautiful orbital trails that visualize the complex movement of N-Body celestial bodies through space in real-time.
🎁Bonus Content Included
- 🌌Space Skybox VFX Graph: Free sample from the Procedural Space Skybox asset - a stunning VFX Graph skybox perfect for space environments (lite version without nebulas, full version available separately).
- 🪐Planet & Star Textures: High-quality pre-baked textures for planets, gas giants, and stars from the Procedural Planet Generation asset, ready to use in your scenes.
- 💡Custom Shader Space Lighting: Specialized shader-based lighting system that simulates illumination from a central star, giving your celestial bodies realistic lighting that responds to their position.
🚀Perfect For: Space simulation games • Orbital mechanics visualization • Learning ECS and DOTS through clean, extensible architecture
⚙️ Technical Requirements
Unity DOTS:
- Unity.Entities 1.3.14
- Unity.Physics 1.3.14
- Visual Effect Graph 17.0.4