Gravit Home / Documentation Index
Some things to do for when you get bored!
You can make your screen saver only work on one simulation automatically.
save myscreensaver
# Run gravit.cfg to get the colour scheme and a few other settings exec gravit.cfg # Go fullscreen, like a screensaver would videofullscreen 1 # Hide the on screen display, to make it look like a screensaver drawosd 0 # load up the simulation load myscreensaver # start recording record # automatically save every 10 frames saveauto 10 # rotate your view automatically autorotate 0 0.01 0
exec screensaver.cfg
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
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!