Quickstart
A tutorial for getting started with axtools.
In this tutorial, you will:
Create your own planetary system
Load and dump the system data to file
View your system in action
Template Files
Template files are written in JSON format. You will need to specify a name, limit, delta, and a beginning timestep (0). axtools
uses template files to hold the structure of a system until it's computed. They're essentially starter values that axinite
will later use to load the system.
Here's an example template file:
For any time value like limit
, delta
, or t
, you can use the suffixes min
, hr
, d
, and yr
.
Each body can also take a color
string and a light
boolean.
Write your own system and store it in "SYSTEM_NAME.tmpl.ax".
Using the axtools
module
axtools
moduleaxtools
comes included with:
You can read the file using:
The args
object holds the data axinite
needs to load the system. If your computer is high-end, you can load and show it at the same time with:
Otherwise, you can preload it then display it with:
Last updated