Examples, Tips and Customization

Gravit Home / Documentation Index

Overview

Some things to do for when you get bored!

Screen Saver on a single simulation

You can make your screen saver only work on one simulation automatically.

A Random Galaxy

This code will spawn one very random galaxy. Feel free to use more particles if you have the patience! Personally I can't get tired of spawning new and random galaxies and seeing what shape come out of them.

particlecount 1000
spawnrangemin 0
spawnrangemax 0
spawngalvelmin 0
spawngalvelmax 0
spawngalsizemin 0
spawngalsizemax 2000
spawngalmassmin 0
spawngalmassmax 2000
spawngalcountmin 1
spawngalcountmax 1
spawn

A Stable Galaxy

Since the spawning particles is random every time, you'll have to keep trying until you get a good galaxy. You can tell a galaxy is going to be fairly round by observing acceleration:

particlecolourmode 2

If most of the colours in the galaxy are the same (except for the middle), particle orbits will probably stay at the same radius for a longer then normal period. These are fairly stable galaxies. Try making two of them and watch them collide!