Box#
- class Drawing.Box()#
The edges of a box. Created using
Drawing.addBox().- Box.getCenter()#
- Box.setCenter(value)#
Position of the center of the box.
- Property:
Can be read or written
- Return type:
[number, number, number]- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph
- Box.getSize()#
- Box.setSize(value)#
Lengths of the sides of the box along its x, y and z axes, in meters.
- Property:
Can be read or written
- Return type:
[number, number, number]- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph
- Box.getRotation()#
- Box.setRotation(value)#
Rotation of the box, as a quaternion.
- Property:
Can be read or written
- Return type:
[number, number, number, number]- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph
- Box.getReferenceFrame()#
- Box.setReferenceFrame(value)#
Reference frame for the position and rotation of the box.
- Property:
Can be read or written
- Return type:
- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph
- Box.getVisible()#
- Box.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
- Box.getColor()#
- Box.setColor(value)#
The color of the edges.
- Property:
Can be read or written
- Return type:
- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph
- Box.getThickness()#
- Box.setThickness(value)#
The thickness of the edges.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph
- Box.getMaterial()#
- Box.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
- Box.remove()#
Remove the object.
- Game Scenes:
Flight, Tracking Station, Editor Vab, Editor Sph