.. default-domain:: java .. highlight:: java .. package:: krpc.client.services.Drawing Sphere ====== .. type:: public class Sphere A solid sphere. Created using :meth:`addSphere(org.javatuples.Triplet, double, SpaceCenter.ReferenceFrame, boolean)`. .. note:: The sphere is drawn with an additive material, so a darker color draws it more transparent. .. method:: org.javatuples.Triplet getCenter() .. method:: void setCenter(org.javatuples.Triplet value) Position of the center of the sphere. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. method:: double getRadius() .. method:: void setRadius(double value) Radius of the sphere, in meters. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. method:: SpaceCenter.ReferenceFrame getReferenceFrame() .. method:: void setReferenceFrame(SpaceCenter.ReferenceFrame value) Reference frame for the positions of the object. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. method:: boolean getVisible() .. method:: void setVisible(boolean value) Whether the object is visible. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. method:: StdLib.ColorRGB getColor() .. method:: void setColor(StdLib.ColorRGB value) The color of the object. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. method:: String getMaterial() .. method:: void setMaterial(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 .. method:: void remove() Remove the object. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph