fix: BoxColliderTriggerArea Visualisation Not Rotating

This commit is contained in:
Syntriax 2023-02-16 13:54:18 +03:00
parent ea44c11e56
commit e97119befc
1 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,8 @@ namespace Syntriax.Modules.Trigger
else
Gizmos.color = TriggerCount > 0 ? Color.green : Color.red;
Gizmos.DrawWireCube(transform.position, transform.lossyScale);
Gizmos.matrix = transform.localToWorldMatrix;
Gizmos.DrawWireCube(Vector3.zero, Vector3.one);
}
#endif
}