Gravity Engine 2 3.0
Loading...
Searching...
No Matches
GravityEngine2.SolarSystemBuilder Class Reference

SolarSystemBuilder is an Editor feature used to create a Solar System prior to running a scene. This class is just a struct like anchor for the editor operations. More...

Inheritance diagram for GravityEngine2.SolarSystemBuilder:

Classes

class  COERequest
 Container class to store the relevant info to make a Horizons Web API request. More...
 

Public Types

enum  SolarPropagator { GRAVITY , KEPLER }
 

Public Member Functions

void BodiesAddToScene ()
 Based on the input variables, create all the game objects and heirarchy required for the solar system as configured and generate the JPL info requests.
 
void DoRequests ()
 
string JPLSmallBodyQuery (string smallBodyName)
 
int[] MaxSatellites ()
 
string[] PlanetNames ()
 
void RequestsClear ()
 

Public Attributes

int day = 1
 
int month = 1
 
GameObject planetPrefab
 
bool[] planets = new bool[NUM_PLANETS]
 
GameObject satellitePrefab
 
int[] satellites = new int[NUM_PLANETS]
 
string[] smallBodies
 
GameObject smallBodyPrefab
 
GameObject sunPrefab
 
int year = 2024
 

Static Public Attributes

static int NUM_PLANETS = 8
 

Protected Attributes

int[] maxSatellites = new int[] { 0, 0, 1, 2, 95, 146, 27, 14 }
 
string[] planetNames
 

Detailed Description

SolarSystemBuilder is an Editor feature used to create a Solar System prior to running a scene. This class is just a struct like anchor for the editor operations.

It should not be run during execution of a scene (better to inactivate or remove it after creating the system). Running it should be harmless but has not been tested.

Member Data Documentation

◆ planetNames

string [] GravityEngine2.SolarSystemBuilder.planetNames
protected
Initial value:
= new string[]
{ "Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune"}

The documentation for this class was generated from the following file: