1
This commit is contained in:
@@ -26,6 +26,24 @@ namespace BITKit.Scene
|
||||
var rotation = transform.rotation;
|
||||
Gizmos.DrawCube(position, rotation*bounds.Value);
|
||||
}
|
||||
|
||||
RenderRay(transform.up);
|
||||
RenderRay(transform.forward);
|
||||
RenderRay(transform.right);
|
||||
RenderRay(-transform.right);
|
||||
RenderRay(-transform.up);
|
||||
RenderRay(-transform.forward);
|
||||
|
||||
|
||||
return;
|
||||
|
||||
void RenderRay(Vector3 direction)
|
||||
{
|
||||
if (Physics.Raycast(position, direction, out var hit))
|
||||
{
|
||||
Debug.DrawLine(position, hit.point, color);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user