Sphere#

class Sphere#

A solid sphere. Created using Drawing.AddSphere.

Note

The sphere is drawn with an additive material, so a darker color draws it more transparent.

Tuple<double, double, double> Center { get; set; }#

Position of the center of the sphere.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

double Radius { get; set; }#

Radius of the sphere, in meters.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

SpaceCenter.ReferenceFrame ReferenceFrame { get; set; }#

Reference frame for the positions of the object.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

bool Visible { get; set; }#

Whether the object is visible.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

StdLib.ColorRGB Color { get; set; }#

The color of the object.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

string Material { get; set; }#

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