Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Static Public Member Functions | List of all members
GizmoDrawUtil Class Reference

Static Public Member Functions

static void DrawArc (Vector3 pivot, Vector3 axis, Vector3 v0, float fromAngle, float toAngle, float radius, int subdivisions=12)
 
static void DrawCrosshairs (Vector3 position, float size, Color color)
 Draws 3 lines crossing at the center, forming a crosshair. More...
 
static void DrawReach (Bounds bounds, float radius, Color color)
 Draws the reach of an object which is allowed to slew inside the given bounds, plus rotate around a pivot up to the given distance. (should produce a cube with rounded edges) More...
 

Member Function Documentation

static void GizmoDrawUtil.DrawArc ( Vector3  pivot,
Vector3  axis,
Vector3  v0,
float  fromAngle,
float  toAngle,
float  radius,
int  subdivisions = 12 
)
inlinestatic
static void GizmoDrawUtil.DrawCrosshairs ( Vector3  position,
float  size,
Color  color 
)
inlinestatic

Draws 3 lines crossing at the center, forming a crosshair.

Parameters
position
size
color
duration
static void GizmoDrawUtil.DrawReach ( Bounds  bounds,
float  radius,
Color  color 
)
inlinestatic

Draws the reach of an object which is allowed to slew inside the given bounds, plus rotate around a pivot up to the given distance. (should produce a cube with rounded edges)

Parameters
bounds
radius
color

< draw corners

< draw bounds


The documentation for this class was generated from the following file: