API Referenceglobal
public sealed class Sandbox.Gizmo.GizmoDraw
Contains functions to add objects to the Gizmo Scene. This is an instantiable class so it's possible to add extensions.
Methods
Showing 48 methods
public void Arrow(Vector3 from, Vector3 to, float arrowLength = 12, float arrowWidth = 5)
Draw a line with an arrow on the end
Parameters
arrowLength: Default: 12arrowWidth: Default: 5
public void LineBBox(BBox box)
Draw a bounding box
public void LineCapsule(Capsule capsule, int rings = 12)
Parameters
rings: Default: 12
public void LineCylinder(Vector3 vPointA, Vector3 vPointB, float flRadiusA, float flRadiusB, int nNumSegments)
A cylinder
public void LineFrustum(Sandbox.Frustum frustum)
Draws a frustum.
public void Lines(System.Collections.Generic.IEnumerable`1<Line> lines)
public void LineTriangle(Sandbox.Triangle triangle)
A triangle
public void LineTriangles(System.Collections.Generic.IEnumerable`1<Sandbox.Triangle> triangles)
public void ScreenBiasedHalfCircle(Vector3 center, float radius)
Draws a half circle that tries its best to point towards the camera. This is used by the rotation widgets that bias towards the camera.
public void ScreenRect(Sandbox.Rect rect, Color color, Vector4 borderRadius = null, Color borderColor = null, Vector4 borderSize = null, Sandbox.BlendMode blendMode = 0)
Draw a rect, on the screen
Parameters
borderRadius: Default: nullborderColor: Default: nullborderSize: Default: nullblendMode: Default: 0
public void SolidBox(BBox box)
Draw a solid box shape
public void SolidCapsule(Vector3 start, Vector3 end, float radius, int hSegments, int vSegments)
Draw a solid capsule shape
public void SolidCircle(Vector3 center, float radius, float startAngle = 0, float totalDegrees = 360, int sections = 8)
Draw a filled circle
Parameters
startAngle: Default: 0totalDegrees: Default: 360sections: Default: 8
public void SolidCone(Vector3 base, Vector3 extent, float flRadius, System.Nullable`1<int> segments = null)
Parameters
segments: Default: null
public void SolidCylinder(Vector3 start, Vector3 end, float radius, int hSegments = 32)
Draw a solid cylinder shape
Parameters
hSegments: Default: 32
public void SolidRing(Vector3 center, float innerRadius, float outerRadius, float startAngle = 0, float totalDegrees = 360, int sections = 8)
Draw a filled ring
Parameters
startAngle: Default: 0totalDegrees: Default: 360sections: Default: 8
public void SolidSphere(Vector3 center, float radius, int hSegments = 8, int vSegments = 8)
Draw a solid sphere shape
Parameters
hSegments: Default: 8vSegments: Default: 8
public void SolidTriangles(System.Collections.Generic.IEnumerable`1<Sandbox.Triangle> triangles)
No results match this filter.
Properties
Showing 4 properties
public bool Sandbox.Gizmo.GizmoDraw.CullBackfaces { get; set; }
Don't draw backfaces when drawing solids
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | global |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Gizmo.GizmoDraw |