BGE Solar system - simple gravity simulation

Description

Not a real game but a simple simulation of gravity in a solar system. Creates a number of random planets around a sun. Their number will decrease over time - they will collide, merge or fall into the sun. But in the end some will find a more or less stable orbit. I love watching it : )

Run the game to start the simulation. You can also adjust the camera:

- Arrow keys to pan

- LeftClick and drag to rotate

- NumPlus/-Minus or PageUp/-Down to zoom

The code is in gravity.py and should be very easy to adjust if you're familiar with Python.

Cheers, have fun!

Comments (4)

R
RedFrost over 10 years ago

This is very cool. did you write the scripts yourself?

T
tigertowel over 10 years ago

Thanks RedFrost! Of course I did : ) In the end it's only 3 simple formulas I got from Wikipedia wrapped in BGE basics ...

D
Designeren over 10 years ago

This is so COOL! Thank you for the very nice and clean scripts!

S
solarforge over 10 years ago

Nice ! and very simple to use, you even made the sun wobble ! GJ...

Sign in to leave a comment.