This commit is contained in:
CortexCore
2025-02-27 22:54:02 +08:00
parent 897519f6c2
commit 12051b4fbb
33 changed files with 181130 additions and 1574782 deletions

View File

@@ -20,12 +20,11 @@ namespace BITKit.Scene
if (draw is false || AllowGizmos is false) return;
var position = transform.position;
Gizmos.color = color;
Gizmos.DrawWireSphere(position, size);
if (bounds.Allow)
{
var rotation = transform.rotation;
Gizmos.DrawWireCube(position+rotation*bounds.Value/2, rotation*bounds.Value);
Gizmos.DrawCube(position, rotation*bounds.Value);
}
}
}