1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user