Giter VIP home page Giter VIP logo

unity-star-systems-and-galaxies's Introduction

Unity Star Systems and Galaxies

Set-up Instructions

There are two ways that you can set this project up on your computer:

  • Option 1: Zip file

    1. Do NOT download the zip file from "Code" dropdown. Some assets will not be loaded correctly. Instead, download the "StarSystems.zip" file located in the "Releases" section of this repository.
    2. Once downloaded and unzipped, open the project in Unity Hub.

  • Option 2: Git Clone
    1. Ensure the Git CLI is installed.
    2. Open the terminal or the command prompt and run git clone https://github.com/notakamihe/Unity-Star-Systems-and-Galaxies.git in the desired directory.
    3. Open the cloned project in Unity Hub

What is this project?

This project is a first-person space simulation game that allows the player to take breathtaking views of celestial bodies as if they were there themselves. Players can traverse the cosmos and explore the most fascinating apsects of the Universe such as the Solar System, exoplanets, stars, and galaxies. This project was developed all throughout the summer by me using the Unity game engine and C#.

Gameplay

Controls

  • Movement:
    • W A S D to move forwards, backwards, and sideways
    • Z X to strafe up and down
  • Speed control:
    • Slow, planetary speed: Shift + W/A/S/D/Z/X
    • Boost speed: Space + W/A/S/D/Z/X
    • Interstellar speed: Shift + Space + W/A/S/D/Z/X
    • Intergalactic speed: Tab + W/A/S/D/Z/X
  • Time control (1-9):
    • 1: Slowest, best for landing on worlds.
    • 9: Fastest, best for time progression.

Player

The player is a formless, city-sized space probe equipped with technology advanced enough to travel throughout the cosmos in seconds. When an object is in focus, it can read details about that object's size, mass, temperature, etc. It also has the ability to control speed and time at will.

Environments

Solar System

This simulation's Solar System attempts to accurately portray most of the objects in it's real life counterpart. These include:

  • The Sun
  • Eight planets (Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, and Neptune)
  • Four dwarf planets (Pluto, Ceres, Makemake, and Eris)
  • Two belts (Asteroid and Kuiper)

Star Systems

Star systems in this simuation mainly consist of one star surrounded several planets, dwarf planets, and debris disks. They can either be:

  • Customizable

    Players themselves manipulate the parameters that structure a star system. The Solar System is a customizable star system. Players can modify:

    • Properties of a star (type, size, color, temperature, mass, remnant, etc.)
    • Properties of a planets, dwarf planets, and moons (size, mass, temperature, distance from star/planet, texture)
    • Properties of a debris disk / belt (distance from star, asteroid prefab, thickness)

  • Procedural

    Star systems are generated through code. The star properties, size and number of planets are randomly decided by the computer. The properties of planets, moons, and dwarf planets are calculated through math and correlations.

Stellar Remnants

When a star dies, it can leave behind one of three remnants based on its type and mass:

  • White dwarf surrounded by a planetary nebula
  • Neutron star
  • Black hole

Galaxies

Galaxies are astronomical structures that consist of a lot of dust, gas, and stars. In this simulation, users can customize a galaxy's:

  • Color
  • Size
  • Shape (sprial or elliptical)
  • Number of stars (up to 100 for performance reasons)

Galaxy Clusters

Galaxy clusters are the largest possible structures in the simulation. They can contain multiple galaxies and can span several million light years, dwarfing even the largest galaxies. Users can specify the number of galaxies that can be contained in a cluster.

Notes

  • Distances are not 100% up to scale. If they were, the playable universe would be a lot a bigger than what is intended.
  • Orbits are circular rather than elliptical
  • Planet-landing is not recommended on an intergalactic scale. Movements become jerky when the universe is steered very far away from the origin.
  • With the exception of Kepler's third law, this project does not use any of the theories, laws and mathematics that are applied in real-world astrophysics. Celestial bodies mostly behave based on simple linear or exponential algebraic equations or conditional logic.

Links

Links to the YouTube videos that I have made from this project are listed below:

unity-star-systems-and-galaxies's People

Contributors

notakamihe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

weirdbearddev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.