From ce743bea196eb524cb7cbf5ad550460184d6f15c Mon Sep 17 00:00:00 2001 From: Henrique Gemignani Passos Lima Date: Fri, 28 Oct 2022 16:49:13 +0300 Subject: [PATCH] Fix CBSFall::Start --- src/MetroidPrime/BodyState/CBSFall.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MetroidPrime/BodyState/CBSFall.cpp b/src/MetroidPrime/BodyState/CBSFall.cpp index 1cf61f8c..68d59df4 100644 --- a/src/MetroidPrime/BodyState/CBSFall.cpp +++ b/src/MetroidPrime/BodyState/CBSFall.cpp @@ -20,7 +20,7 @@ void CBSFall::Start(CBodyController& bc, CStateManager& mgr) { const CBCKnockDownCmd* cmd = static_cast< const CBCKnockDownCmd* >(bc.CommandMgr().GetCmd(kBSC_KnockDown)); CVector3f localDir = bc.GetOwner().GetTransform().TransposeRotate(cmd->GetHitDirection()); - CAbsAngle angle = CAbsAngle::FromRadians(atan2(localDir.GetY(), localDir.GetZ())); // TODO: x + CAbsAngle angle = CAbsAngle::FromRadians(atan2(localDir.GetY(), localDir.GetX())); const CPASDatabase& db = bc.GetPASDatabase(); const CPASAnimParmData parms(pas::kAS_Fall, CPASAnimParm::FromReal32(angle.AsDegrees()),