Solar System assignment MSU
About
SOLAR SYSTEM V1.1 by Josep B. Martinez
I strongly recommend to play around with the cameras and speeds for a relaxing experience.
Due to lack of programming skills performance might not be good.
CONTROLS: SPEED CONTROLS- Press '1' to '4' to change the simulation speed ( Default is '2' )
- Press '0' to stop the movement
- Press 'c' to switch cameras ( there are 6 )
- 6th has free movement (WASD + Shift + mouse controls )
press "ESC" to exit.
CONTENT- Full Solar system inspired by the real one but no representative of real scales or speeds
- All current planets with their major moons and their orbits using a prefab called "orbit".
- Saturn and Uranus rings included!
- Asteroid belt using the spawner
- Several copies rotate at different speeds while spawning "rocks". The spawner has a new value to destroy itself after X seconds.
- Pluto´s different orbit attached to an special "fake rotated sun"
- Planet´s trails
- All current planets with their major moons and their orbits using a prefab called "orbit".
- 5 different speeds to chose to observer the system
- 6 cameras
- Camera number 5 moves automatically
- Camera 6 has free movement to explore the system at your convenience using WASD + shift + Mouse
- Music
- UI with the instructions on screen
- Minimap camera
- New or modified assets
- Materials
- Asteroid Material ( using Pluto´s texture ) , removed the Comet Material
- Orbit Material ( using a circle png from the internet ) , I had to play around with it in order to find the values to not makes it too distracting ( specially with Saturn Rings )
- Uranus and Saturn rings material with alpha.
- Prefabs
- Asteroid - I modified the comet prefab to become the Asteroid one. I created several copies because I needed different values for the rotation around the Sun to create the effect I wanted. I can probably be done by code by I don´t have the knowledge to do it quickly.
- Orbit - I needed to create a prefab with 2 planes to show the orbit from the 2 sides. Probably there is a better way using a shader but I didn't find it.
- Scripts
- Fly Camera - used to move the camera number 6 , parts of the code are from the internet.
- Input Manager - used to switch the speeds and cameras, parts of the code are from the internet.
- RotateAround - I modified the direction of the rotation to avoid the use of negatives in order to reflect the real rotation.
- Spawner - I added a destroy in the start method so it stops spawning after X seconds.
- Music
- New music from a friend, he gave it to me years ago.
- Created by Josep B. Martinez
- Music by Marti Ruiz
SOME PIECES OF CODE INSFROM:
- FLYCAM- https://gist.github.com/gunderson/d7f096bd07874f31671306318019d996
- INPUT MANAGER- https://answers.unity.com/questions/16146/changing-between-cameras.html