2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 01:47:42 +00:00

Work on CBallCamera

This commit is contained in:
Jack Andersen
2017-10-14 19:38:10 -10:00
parent 96c17ba729
commit 2aee5910d6
10 changed files with 432 additions and 41 deletions

View File

@@ -1253,15 +1253,10 @@ void CSamusHud::Update(float dt, const CStateManager& mgr,
morphT = 1.f;
break;
case CPlayer::EPlayerMorphBallState::Morphing:
if (player.GetMorphDuration() == 0.f)
morphT = 0.f;
else
morphT = zeus::clamp(0.f, player.GetMorphTime() / player.GetMorphDuration(), 1.f);
morphT = player.GetMorphFactor();
break;
case CPlayer::EPlayerMorphBallState::Unmorphing:
if (player.GetMorphDuration() != 0.f)
morphT = zeus::clamp(0.f, player.GetMorphTime() / player.GetMorphDuration(), 1.f);
morphT = 1.f - morphT;
morphT = 1.f - player.GetMorphFactor();
break;
default: break;
}