OrbitPath#

class OrbitPath#

The path of an orbit. Created using add_orbit().

SpaceCenter::Orbit orbit()#
void set_orbit(SpaceCenter::Orbit value)#

The orbit.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

bool whole_orbit()#
void set_whole_orbit(bool value)#

Whether the whole orbit is drawn, up to where it leaves the sphere of influence of its body. When false, the orbit is drawn from OrbitPath::start_true_anomaly() to OrbitPath::end_true_anomaly().

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

double start_true_anomaly()#
void set_start_true_anomaly(double value)#

The true anomaly at which the path starts, in radians.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Note

Setting this sets OrbitPath::whole_orbit() to false.

double end_true_anomaly()#
void set_end_true_anomaly(double value)#

The true anomaly at which the path ends, in radians.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Note

Setting this sets OrbitPath::whole_orbit() to false.

bool visible()#
void set_visible(bool value)#

Whether the object is visible.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

StdLib::ColorRGB color()#
void set_color(StdLib::ColorRGB value)#

The color of the path.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Note

For a path drawn with more than one color, this is the color at its start.

std::vector<StdLib::ColorRGB> colors()#
void set_colors(std::vector<StdLib::ColorRGB> value)#

The colors of the path, blended evenly from its start to its end.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Note

Throws an exception if the list is empty or holds more than 8 colors.

float thickness()#
void set_thickness(float value)#

The thickness of the path.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

bool start_arrow()#
void set_start_arrow(bool value)#

Whether an arrow head is drawn at the start.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

bool end_arrow()#
void set_end_arrow(bool value)#

Whether an arrow head is drawn at the end.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

float arrow_size()#
void set_arrow_size(float value)#

The size of the arrow heads, relative to the thickness.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

bool dashed()#
void set_dashed(bool value)#

Whether the path is drawn as a dashed line.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

std::string label()#
void set_label(std::string value)#

Text drawn halfway along the path, facing the camera. Empty for no label.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

std::string material()#
void set_material(std::string value)#

Material used to render the object. Creates the material from a shader with the given name.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

void remove()#

Remove the object.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph