expOrbit is a very simple mathamatical programming language built specifically for Galaxy. Its entire purpose is to make building orbits from parametric equations simple. expOrbit files are meant to be short, they compile once and are used in the orbit calculations for rendering and generation. Currently expOrbit only supports star orbit editing.
Mandatory Fields
All expOrbit files must have x and z declared as variables.
--[[ Using orbitScale will ensure the orbit complies ]]--[[ with the generator's requested scale ]]x=orbitScale*(0.34*(math.sin(t)+2*math.sin(t*2)))z=orbitScale*(0.34*(math.cos(t)-2*math.cos(t*2)))
More Complex Examples
These examples combine features from the rest of the expOrbit docs, including functions, conditionals, globals, and the math library.
This uses helper functions, math.lerp(), and math.clamp() to create a flower-like orbit that slowly expands and contracts.