From cc01e88ce8d37edda6de33259e1c815878844335 Mon Sep 17 00:00:00 2001 From: MrCapy0 <167662176+MrCapy0@users.noreply.github.com> Date: Sun, 26 May 2024 11:09:17 -0400 Subject: [PATCH] fix compilation when calling debug draw on scripts --- Source/Engine/Debug/DebugDraw.cs | 58 ++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/Source/Engine/Debug/DebugDraw.cs b/Source/Engine/Debug/DebugDraw.cs index c3e6f8990..62843428f 100644 --- a/Source/Engine/Debug/DebugDraw.cs +++ b/Source/Engine/Debug/DebugDraw.cs @@ -279,6 +279,64 @@ namespace FlaxEngine public static void DrawBox(OrientedBoundingBox box, Color color, float duration = 0.0f, bool depthTest = true) { } + + /// + /// Draws the arc. + /// + /// The center position. + /// The orientation. + /// The radius. + /// The angle (in radians) of the arc (arc is facing positive Z axis - forward). Use PI*2 for full disc (360 degrees). + /// The color. + /// The duration (in seconds). Use 0 to draw it only once. + /// If set to true depth test will be performed, otherwise depth will be ignored. + public static void DrawArc(Vector3 position, Quaternion orientation, float radius, float angle, Color color, float duration = 0.0f, bool depthTest = true) + { + } + + /// + /// Draws the wireframe arc. + /// + /// The center position. + /// The orientation. + /// The radius. + /// The angle (in radians) of the arc (arc is facing positive Z axis - forward). Use PI*2 for full disc (360 degrees). + /// The color. + /// The duration (in seconds). Use 0 to draw it only once. + /// If set to true depth test will be performed, otherwise depth will be ignored. + public static void DrawWireArc(Vector3 position, Quaternion orientation, float radius, float angle, Color color, float duration = 0.0f, bool depthTest = true) + { + } + + /// + /// Draws the cone. + /// + /// The center position. + /// The orientation. + /// The radius. + /// The angle (in radians) of the cone over the XY axis (cone forward is over X). + /// The angle (in radians) of the cone over the XZ axis (cone forward is over X). + /// The color. + /// The duration (in seconds). Use 0 to draw it only once. + /// If set to true depth test will be performed, otherwise depth will be ignored. + public static void DrawCone(Vector3 position, Quaternion orientation, float radius, float angleXY, float angleXZ, Color color, float duration = 0.0f, bool depthTest = true) + { + } + + /// + /// Draws the wireframe cone. + /// + /// The center position. + /// The orientation. + /// The radius. + /// The angle (in radians) of the cone over the XY axis (cone forward is over X). + /// The angle (in radians) of the cone over the XZ axis (cone forward is over X). + /// The color. + /// The duration (in seconds). Use 0 to draw it only once. + /// If set to true depth test will be performed, otherwise depth will be ignored. + public static void DrawWireCone(Vector3 position, Quaternion orientation, float radius, float angleXY, float angleXZ, Color color, float duration = 0.0f, bool depthTest = true) + { + } } } #endif