예제 #1
0
 public static void Capsule(Vector3 start, Vector3 end, float radius = 1f, float duration = 0f, bool depthTest = true)
 {
     DebugDraw.Capsule(start, end, Color.white, radius, duration, depthTest);
 }
예제 #2
0
 public static void Bounds(Bounds bounds, float duration = 0f, bool depthTest = true)
 {
     DebugDraw.Bounds(bounds, Color.white, duration, depthTest);
 }
예제 #3
0
 public static void Arrow(Vector3 position, Vector3 direction, Color color, float duration = 0f, bool depthTest = true)
 {
     Debug.DrawRay(position, direction, color, duration, depthTest);
     DebugDraw.Cone(position + direction, -direction * 0.333f, color, 15f, duration, depthTest);
 }
예제 #4
0
 public static void Point(Vector3 position, float scale = 1f, float duration = 0f, bool depthTest = true)
 {
     DebugDraw.Point(position, Color.white, scale, duration, depthTest);
 }
예제 #5
0
 public static void Sphere(Vector3 position, float radius = 1f, float duration = 0f, bool depthTest = true)
 {
     DebugDraw.Sphere(position, Color.white, radius, duration, depthTest);
 }
예제 #6
0
 public static void LocalCube(Matrix4x4 space, Vector3 size, Vector3 center = null, float duration = 0f, bool depthTest = true)
 {
     DebugDraw.LocalCube(space, size, Color.white, center, duration, depthTest);
 }
예제 #7
0
 public static void Normal(Vector3 point, Vector3 normal, float size, Color color, float duration = 0f, bool depthtest = true)
 {
     DebugDraw.Line(point, point + (normal.normalized * size), color, duration, depthtest);
     DebugDraw.Circle(point, normal.normalized, color, size * 0.5f, duration, depthtest);
 }
예제 #8
0
 public static void LocalCube(Transform transform, Vector3 size, Vector3 center = null, float duration = 0f, bool depthTest = true)
 {
     DebugDraw.LocalCube(transform, size, Color.white, center, duration, depthTest);
 }
예제 #9
0
 public static void Cone(Vector3 position, float angle = 45f, float duration = 0f, bool depthTest = true)
 {
     DebugDraw.Cone(position, Vector3.up, Color.white, angle, duration, depthTest);
 }
예제 #10
0
 public static void Circle(Vector3 position, Vector3 up, float radius = 1f, float duration = 0f, bool depthTest = true)
 {
     DebugDraw.Circle(position, up, Color.white, radius, duration, depthTest);
 }
예제 #11
0
 public static void Arrow(Vector3 position, Vector3 direction, float duration = 0f, bool depthTest = true)
 {
     DebugDraw.Arrow(position, direction, Color.white, duration, depthTest);
 }
예제 #12
0
 public override void RunEditor(EventDefinition e, GameObject go)
 {
     DebugDraw.Sphere(e.GetPosition(go.transform), 0.1f, 0.1f, true);
 }