Exemple #1
0
 /// <summary>
 /// Draws a ray starting at ray.origin to ray.origin + ray.direction
 /// </summary>
 public static void DrawRay(Ray ray, Color color, float duration = 0, bool depthTest = true)
 {
     Draw.Ray(drawLine, ray, color, duration, depthTest);
 }
Exemple #2
0
 /// <summary>
 /// Draws a wireframe cube with position, rotation and scale
 /// </summary>
 public static void DrawWireCube(Vector3 position, Quaternion rotation, Vector3 scale, Color color, float duration = 0, bool depthTest = true)
 {
     Draw.WireCube(drawLine, position, rotation, scale, color, duration, depthTest);
 }
Exemple #3
0
 /// <summary>
 /// Draws a wireframe circle with position and radius
 /// </summary>
 public static void DrawWireCircleYZ(Vector3 position, float radius, Color color, float duration = 0, bool depthTest = true)
 {
     Draw.WireCircleYZ(drawLine, position, radius, color, duration, depthTest);
 }
Exemple #4
0
 /// <summary>
 /// Draws a wireframe circular arc with position, rotation and radius
 /// </summary>
 public static void DrawWireArc(Func <float, float, Vector3> pointOnCircle, Vector3 position, Quaternion rotation, float radius,
                                float fromAngle, float toAngle)
 {
     Draw.GetSegmentsAndSegmentAngle(fromAngle, toAngle, out int segments, out float segmentAngle);
     DrawWireArc(pointOnCircle, position, rotation, radius, fromAngle, segments, segmentAngle, Color.white);
 }
Exemple #5
0
 /// <summary>
 /// Draws a wireframe circular arc with position, rotation and radius
 /// </summary>
 public static void DrawWireArc(Func <float, float, Vector3> pointOnCircle, Vector3 position, Quaternion rotation, float radius,
                                float fromAngle, float toAngle, Color color, float duration = 0, bool depthTest = true)
 {
     Draw.GetSegmentsAndSegmentAngle(fromAngle, toAngle, out int segments, out float segmentAngle);
     DrawWireArc(pointOnCircle, position, rotation, radius, fromAngle, segments, segmentAngle, color, duration, depthTest);
 }
Exemple #6
0
 /// <summary>
 /// Draws a segment
 /// </summary>
 public static void DrawSegment3(Segment3 segment)
 {
     Draw.Segment3(drawLine, segment);
 }
Exemple #7
0
 /// <summary>
 /// Draws a wireframe circle with position, rotation and radius
 /// </summary>
 public static void DrawWireCircleYZ(Vector3 position, Quaternion rotation, float radius)
 {
     Draw.WireCircleYZ(drawLine, position, rotation, radius);
 }
Exemple #8
0
 /// <summary>
 /// Draws a wireframe quad with position, rotation and scale
 /// </summary>
 public static void DrawWireQuadYZ(Vector3 position, Quaternion rotation, Vector2 scale)
 {
     Draw.WireQuadYZ(drawLine, position, rotation, scale);
 }
Exemple #9
0
 /// <summary>
 /// Draws a wireframe cube with position, rotation and scale
 /// </summary>
 public static void DrawWireCube(Vector3 position, Quaternion rotation, Vector3 scale)
 {
     Draw.WireCube(drawLine, position, rotation, scale);
 }
Exemple #10
0
 /// <summary>
 /// Draws a wireframe hemisphere with position, rotation and radius
 /// </summary>
 public static void DrawWireHemisphere(Vector3 position, Quaternion rotation, float radius)
 {
     Draw.WireHemisphere(drawLine, position, rotation, radius);
 }
Exemple #11
0
 /// <summary>
 /// Draws a wireframe cone with position and rotation
 /// </summary>
 public static void DrawWireCone(Vector3 position, Quaternion rotation, float apexRadius, float angle, float length)
 {
     Draw.WireCone(drawLine, position, rotation, apexRadius, angle, length);
 }
Exemple #12
0
 /// <summary>
 /// Draws a wireframe circular arc with position, rotation and radius
 /// </summary>
 public static void DrawWireArcYZ(Vector3 position, Quaternion rotation, float radius, float fromAngle, float toAngle)
 {
     Draw.WireArcYZ(drawLine, position, rotation, radius, fromAngle, toAngle);
 }
Exemple #13
0
 /// <summary>
 /// Draws a wireframe circular arc with position and radius
 /// </summary>
 public static void DrawWireArcXY(Vector3 position, float radius, float fromAngle, float toAngle)
 {
     Draw.WireArcXY(drawLine, position, radius, fromAngle, toAngle);
 }
Exemple #14
0
 public static void DrawRay(Ray ray)
 {
     Draw.WireRay(drawLine, ray);
 }
Exemple #15
0
 /// <summary>
 /// Draws a wireframe circular arc with position, rotation and radius
 /// </summary>
 public static void DrawWireArcYZ(Vector3 position, Quaternion rotation, float radius, float fromAngle, float toAngle, Color color,
                                  float duration = 0, bool depthTest = true)
 {
     Draw.WireArcYZ(drawLine, position, rotation, radius, fromAngle, toAngle, color, duration, depthTest);
 }
Exemple #16
0
 /// <summary>
 /// Draws a wireframe circle with position and radius
 /// </summary>
 public static void DrawWireCircleXZ(Vector3 position, float radius)
 {
     Draw.WireCircleXZ(drawLine, position, radius);
 }
Exemple #17
0
 /// <summary>
 /// Draws a wireframe hemisphere with position, rotation and radius
 /// </summary>
 public static void DrawWireHemisphere(Vector3 position, Quaternion rotation, float radius, Color color, float duration = 0,
                                       bool depthTest = true)
 {
     Draw.WireHemisphere(drawLine, position, rotation, radius, color, duration, depthTest);
 }
Exemple #18
0
 /// <summary>
 /// Draws a segment
 /// </summary>
 public static void DrawSegment2(Segment2 segment)
 {
     Draw.Segment2(drawLine, segment);
 }