/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <summary> /// Draws a segment /// </summary> public static void DrawSegment3(Segment3 segment) { Draw.Segment3(drawLine, segment); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
public static void DrawRay(Ray ray) { Draw.WireRay(drawLine, ray); }
/// <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); }
/// <summary> /// Draws a wireframe circle with position and radius /// </summary> public static void DrawWireCircleXZ(Vector3 position, float radius) { Draw.WireCircleXZ(drawLine, position, radius); }
/// <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); }
/// <summary> /// Draws a segment /// </summary> public static void DrawSegment2(Segment2 segment) { Draw.Segment2(drawLine, segment); }