Issues a debug shape to be drawn in Unity. The shape drawing is based on the DEBUG define which is enabled in UnityEditor and development builds. Can be globally toggled of by using DebugDraw.IsEnabled in Unity. Different implementation can be attached using Init(Action<Draw.DebugRay>, Action<Draw.DebugLine>, Action<Draw.DebugCircle>, Action<Draw.DebugSphere>, Action<Draw.DebugRectangle>, Action<Draw.DebugBox>, Action<Draw.DebugCapsule>, Action).
More...
|
static void | Box (FPVector3 center, FPVector3 extents, FPQuaternion? rotation=null, ColorRGBA? color=null, Boolean wire=false) |
| Obsolete: use Quad More...
|
|
static void | Capsule (FPVector2 center, FP extent, FP radius, FP? rotation=null, ColorRGBA? color=null, Boolean wire=false) |
| Draw a 2DD debug capsule in the view. Only included in DEBUG builds. More...
|
|
static void | Capsule (FPVector2 center, Shape2D.CapsuleShape capsule, FP? rotation=null, ColorRGBA? color=null, Boolean wire=false) |
| Draw a 2D debug capsule in the view. Only included in DEBUG builds. More...
|
|
static void | Capsule (FPVector3 center, FP extent, FP radius, FPQuaternion? rotation=null, ColorRGBA? color=null, Boolean wire=false) |
| Draw a 3D debug capsule in the view. Only included in DEBUG builds. More...
|
|
static void | Capsule (FPVector3 center, Shape3D.CapsuleShape capsule, FPQuaternion? rotation=null, ColorRGBA? color=null, Boolean wire=false) |
| Draw a 3D debug capsule in the view. Only included in DEBUG builds. More...
|
|
static void | Circle (FPVector2 center, FP radius, ColorRGBA? color=null, Boolean wire=false) |
| Draw a 2D debug circle in the view. Only included in DEBUG builds. More...
|
|
static void | Circle (FPVector3 center, FP radius, ColorRGBA? color=null, Boolean wire=false) |
| Obsolete: use Circle(FPVector3 center, FP radius, FPQuaternion rotation) More...
|
|
static void | Circle (FPVector3 center, FP radius, FPQuaternion? rotation=null, ColorRGBA? color=null, Boolean wire=false) |
| Draw a 3D debug circle in the view. Only included in DEBUG builds. More...
|
|
static void | Clear () |
| Executes the clear action. More...
|
|
static void | Init (Action< DebugRay > drawRay, Action< DebugLine > drawLine, Action< DebugCircle > drawCircle, Action< DebugSphere > drawSphere, Action< DebugRectangle > drawRectangle, Action< DebugBox > drawBox, Action clear) |
| Obsolete. Use the Init method with the capsule drawer. More...
|
|
static void | Init (Action< DebugRay > drawRay, Action< DebugLine > drawLine, Action< DebugCircle > drawCircle, Action< DebugSphere > drawSphere, Action< DebugRectangle > drawRectangle, Action< DebugBox > drawBox, Action< DebugCapsule > drawCapsule, Action clear) |
| Initializes the debug draw system with the given draw functions. More...
|
|
static void | Line (FPVector2 start, FPVector2 end, ColorRGBA? color=null) |
| Draw a 2D debug line in the view. Only included in DEBUG builds. More...
|
|
static void | Line (FPVector3 start, FPVector3 end, ColorRGBA? color=null) |
| Draw a 3D debug line in the view. Only included in DEBUG builds. More...
|
|
static void | Quad (FPVector3 center, FPVector3 extents, FPQuaternion rotation, ColorRGBA? color=null, Boolean wire=false) |
| Draw a 3D debug quad in the view. Only included in DEBUG builds. More...
|
|
static void | Ray (FPVector2 origin, FPVector2 direction, ColorRGBA? color=null) |
| Draw a 2D debug ray in the view. Only included in DEBUG builds. More...
|
|
static void | Ray (FPVector3 origin, FPVector3 direction, ColorRGBA? color=null) |
| Draw a 3D debug ray in the view. Only included in DEBUG builds. More...
|
|
static void | Rectangle (FPVector2 center, FPVector2 size, FP rotation, ColorRGBA? color=null, Boolean wire=false) |
| Draw a 2D debug rectangle in the view. Only included in DEBUG builds. More...
|
|
static void | Rectangle (FPVector3 center, FPVector2 size, FP rotation, ColorRGBA? color=null, Boolean wire=false) |
| Obsolete: use Rectangle(FPVector3 center, FPVector2 size, FPQuaternion rotation) or Rectangle(FPVector2 center, FPVector2 size, FP rotation) More...
|
|
static void | Rectangle (FPVector3 center, FPVector2 size, FPQuaternion rotation, ColorRGBA? color=null, Boolean wire=false) |
| Draw a 3D debug rectangle in the view. Only included in DEBUG builds. More...
|
|
static void | Reset () |
| Remove all draw actions. More...
|
|
static unsafe void | Shape (FrameBase f, ref Shape2D shape, FPVector2 center, FP? rotation=null, ColorRGBA? color=null, bool wire=false) |
| Draw a shape from a 2D shape config. Only included in DEBUG builds. More...
|
|
static unsafe void | Shape (FrameBase f, ref Shape3D shape, FPVector3 center, FPQuaternion? rotation=null, ColorRGBA? color=null, bool wire=false) |
| Draw a shape from a 3D shape config. Only included in DEBUG builds. More...
|
|
static void | Sphere (FPVector3 center, FP radius, ColorRGBA? color=null, Boolean wire=false) |
| Draw a 3D debug sphere in the view. Only included in DEBUG builds. More...
|
|
static void | WireBox (FPVector3 center, FPVector3 extents, FPQuaternion? rotation=null, ColorRGBA? color=null) |
| Obsolete: use Quad More...
|
|
Issues a debug shape to be drawn in Unity. The shape drawing is based on the DEBUG define which is enabled in UnityEditor and development builds. Can be globally toggled of by using DebugDraw.IsEnabled in Unity. Different implementation can be attached using Init(Action<Draw.DebugRay>, Action<Draw.DebugLine>, Action<Draw.DebugCircle>, Action<Draw.DebugSphere>, Action<Draw.DebugRectangle>, Action<Draw.DebugBox>, Action<Draw.DebugCapsule>, Action).