HitboxDisplay lots of broken stuff

This commit is contained in:
ThomasCharester committed 2026-11-09 02:51:36 +03:00
1 parent 9203f269db
commit f40a10912c
78 files changed
+12768 -309066

No files matched your search

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using Code.OfficeGame.BattleMode.Timeline;
using UnityEngine;
namespace Code.OfficeGame.BattleMode.HitBoxes
@@ -26,6 +27,8 @@ namespace Code.OfficeGame.BattleMode.HitBoxes
BoxCollider box = bodyParts[hitBoxPartType];
Transform boxTransform = box.transform;
HitboxDrawer.DrawBox(box, Color.red, BattleTimeline.TickDelta);
Vector3 worldCenter = boxTransform.TransformPoint(box.center);
Vector3 worldHalfExtents = Vector3.Scale(box.size * 0.5f, boxTransform.lossyScale);