This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public static class PhysicsDebugDraw | |
{ | |
// Draws just the box at where it is currently hitting. | |
public static void DrawBoxCastOnHit(Vector3 origin, Vector3 halfExtents, Quaternion orientation, Vector3 direction, float hitInfoDistance, Color color) | |
{ | |
origin = CastCenterOnCollision(origin, direction, hitInfoDistance); | |
DrawBox(origin, halfExtents, orientation, color); | |
} |