Skip to content

SolarSystemSimulation is a C# application that visually simulates planetary motion using realistic gravitational physics and 3D rendering with OpenTK.

License

Notifications You must be signed in to change notification settings

n1k0m0/SolarSystemSimulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SolarSystemSimulation

Overview

SolarSystemSimulation is a C# application that visually simulates the motion of celestial bodies in a solar system. The simulation uses OpenTK for rendering and physics calculations, displaying planets orbiting the Sun based on real gravitational forces.

Features

  • Realistic gravitational physics for planetary motion.
  • 3D rendering of the solar system using OpenTK.
  • Support for textures to enhance visualization.
  • Adjustable simulation speed and zoom levels.
  • Toggleable background and data display for enhanced visualization.
  • User input handling for interaction.

Installation

Prerequisites

Ensure you have the following installed:

  • .NET 6.0 or later
  • OpenTK library (OpenTK.Graphics)

Cloning the Repository

git clone https://github.com/n1k0m0/SolarSystemSimulation

Usage

Controls

  • Arrow Keys: Adjust zoom and scale.
  • W/S: tilt x axis
  • A/S: tilt y axis
  • Q/E: tilt z axis
  • Page Up/Down: Change simulation speed.
  • F1: Reset the simulation.
  • F2: Toggle planetary data display.
  • F3: Toggle background.
  • F4: Toggle labels.
  • Escape: Exit the simulation.

Project Structure

SolarSystemSimulation/
¦-- Program.cs               # Entry point for the simulation
¦-- SolarSystemWindow.cs     # Handles rendering and user interaction
¦-- AstronomicalBody.cs      # Defines celestial bodies and physics calculations
¦-- Textures/                # Folder containing planet textures
¦-- LICENSE                  # Licensing information
¦-- README.md                # This file

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

Acknowledgments

  • OpenTK for 3D rendering and graphics support.
  • NASA/JPL for accurate planetary data.

Contributing

Pull requests and suggestions are welcome! If you find a bug or have ideas for enhancements, feel free to open an issue.

About

SolarSystemSimulation is a C# application that visually simulates planetary motion using realistic gravitational physics and 3D rendering with OpenTK.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages