Sphere#

class Drawing.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.

Sphere.getCenter()#
Sphere.setCenter(value)#

Position of the center of the sphere.

Property:

Can be read or written

Return type:

[number, number, number]

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Sphere.getRadius()#
Sphere.setRadius(value)#

Radius of the sphere, in meters.

Property:

Can be read or written

Return type:

number

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Sphere.getReferenceFrame()#
Sphere.setReferenceFrame(value)#

Reference frame for the positions of the object.

Property:

Can be read or written

Return type:

SpaceCenter.ReferenceFrame

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Sphere.getVisible()#
Sphere.setVisible(value)#

Whether the object is visible.

Property:

Can be read or written

Return type:

boolean

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Sphere.getColor()#
Sphere.setColor(value)#

The color of the object.

Property:

Can be read or written

Return type:

StdLib.ColorRGB

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Sphere.getMaterial()#
Sphere.setMaterial(value)#

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

Property:

Can be read or written

Return type:

string

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Sphere.remove()#

Remove the object.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph