This commit is contained in:
CortexCore
2025-04-28 15:11:01 +08:00
parent 2d8978e694
commit f8bcf8a4d4
19 changed files with 526 additions and 15 deletions

View File

@@ -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);
}
}
}
}
}