0

melee blade component not working properly when using a box

Mathalous 2 days ago in Melee 0

When using a the box setting for a melee BladeComponent, the first few frames of the attack use the previous location to start before jumping into the correct location. This can lead to some weird ghost hits. 


Fortunately I made a fix for it. Just replace the code in BladeComponent.CaptureHitsBox() with the code here


This is actually a copy and paste of the code used for CaptureHitsSphere which uses Physics.OverlapSphereNonAlloc except its now calling Physics.OverlapBoxNonAlloc. I honestly don't know why it wasn't used to begin with. I can imagine the facepalm that will happen when this is realized...

Unity version:
2019.4.1f1
Game Creator version:
1.1.9