IMS2
Pre-Alpha
An Orbiter add-on to allow on-runtime construction of spacecraft from predefined modules
|
This class contains static orbiter related properties that are common to all modules. More...
Public Member Functions | |
bool | hadErrors () |
virtual void | LoadFromFile (string configfilename, IMSFILE file) |
string | getMeshName () |
int | getSize () |
string | getConfigFileName () |
string | getClassName () |
vector< IMSATTACHMENTPOINT > & | getAttachmentPoints () |
void | getPmi (VECTOR3 &OUT_pmi) |
Returns the modules principle moments of inertia in the passed VECTOR3. | |
SimpleShape * | GetHullShape () |
Protected Attributes | |
std::string | _configFileName |
string | _meshName |
int | _size |
vector< IMSATTACHMENTPOINT > | _attachmentPoints |
bool | _valid |
SimpleShape * | hullshape = NULL |
The vertices of the hull shape of the module, module relative. | |
VECTOR3 | pmi = _V(0, 0, 0) |
Private Member Functions | |
void | createHullShape (HULLSHAPEDATA shapedata) |
Stores the PMI ("inertia" in the cfg) of this module. More... | |
HULLSHAPEDATA | readShape (IMSFILE file) |
Reads the next line of a SHAPE block from the config file. More... | |
This class contains static orbiter related properties that are common to all modules.
brackets are part of the actual synthax, so don't write them. Here's a little explanation of how this documentation is to be read:
Note that transformations will always be applied in the below order, even if you don't write them in this order in the config.
Defines a coarse hullshape for the module. This data will be used by IMS to generate touchdown points. Note that this can get expensive for large vessels, so it makes sense to only use this parameter on modules that will make up significant parts of a vessels structures. It should not be used for small things like RCS thrusters or small propellant tanks.
Example: Create a cylinder with a radius of 3 meters, a length of 12 m, offset from the center by -2 meters in the z axis.
Define an arbitrary number of IMS attachment points. Attachment points will manifest on the module as docking ports, until another module Is integrated on that point, then the Dockport will vanish.
Example: Creates two attachment points on a module, one facing forward aligned with the module, the other backwards and "on its head".
|
private |
Stores the PMI ("inertia" in the cfg) of this module.
creates the hull shape based on the parameters read from the scenario line
shapedata | The data defining the nature of the shape. |
|
inline |
|
private |
Reads the next line of a SHAPE block from the config file.
file | The file to read from. It is implied that the last line read from the file was BEGIN_SHAPE. |