From 93e8d6e556deb2f7cb634a697b285bcd133654aa Mon Sep 17 00:00:00 2001 From: TheTimeSweeper Date: Sun, 24 Nov 2024 08:30:18 -0800 Subject: [PATCH] fixing hitbox gizmo not on lossy scale --- Editor/RoR2/HitBoxGizmoDrawer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Editor/RoR2/HitBoxGizmoDrawer.cs b/Editor/RoR2/HitBoxGizmoDrawer.cs index ceb6b57..6bf46c3 100644 --- a/Editor/RoR2/HitBoxGizmoDrawer.cs +++ b/Editor/RoR2/HitBoxGizmoDrawer.cs @@ -10,7 +10,7 @@ internal class HitBoxGizmoDrawer private static void DrawGizmos(HitBox hitBox, GizmoType gizmoType) { Gizmos.color = Color.red; - Gizmos.DrawWireMesh(cubeMesh, hitBox.transform.position, hitBox.transform.rotation, hitBox.transform.localScale); + Gizmos.DrawWireMesh(cubeMesh, hitBox.transform.position, hitBox.transform.rotation, hitBox.transform.lossyScale); } } }