2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-02 06:14:22 +00:00

CDrone: Fix UpdateTouchBounds

This commit is contained in:
Luke Street 2020-09-09 02:28:36 -04:00
parent fbdfdb0fa4
commit 535f44deec

View File

@ -835,6 +835,8 @@ void CDrone::UpdateVisorFlare(CStateManager& mgr) {
void CDrone::UpdateTouchBounds(float radius) {
const zeus::CTransform xf = GetLctrTransform("Skeleton_Root"sv);
const zeus::CVector3f diff = xf.origin - GetTranslation();
x690_colSphere.SetSphereCenter(diff);
x690_colSphere.SetSphereRadius(radius);
SetBoundingBox(zeus::CAABox{diff - radius, diff + radius});
x6b0_pathFind.SetCharacterRadius(0.25f + radius);
}