CDrone: Fix UpdateTouchBounds

This commit is contained in:
Luke Street 2020-09-09 02:28:36 -04:00
parent fbdfdb0fa4
commit 535f44deec
1 changed files with 2 additions and 0 deletions

View File

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