mirror of https://github.com/AxioDL/metaforce.git
parent
c0db37ce66
commit
0d8a766146
|
@ -57,7 +57,7 @@ void CScriptBallTrigger::Think(float dt, CStateManager& mgr) {
|
||||||
|
|
||||||
const float ballRadius = player.GetMorphBall()->GetBallRadius();
|
const float ballRadius = player.GetMorphBall()->GetBallRadius();
|
||||||
const zeus::CVector3f radiusPosDif =
|
const zeus::CVector3f radiusPosDif =
|
||||||
(player.GetTranslation() - (player.GetTranslation() + zeus::CVector3f{0.f, 0.f, ballRadius}));
|
GetTranslation() - (player.GetTranslation() + zeus::CVector3f{0.f, 0.f, ballRadius});
|
||||||
const float distance = radiusPosDif.magnitude();
|
const float distance = radiusPosDif.magnitude();
|
||||||
|
|
||||||
if (!x168_24_canApplyForce) {
|
if (!x168_24_canApplyForce) {
|
||||||
|
@ -78,8 +78,6 @@ void CScriptBallTrigger::Think(float dt, CStateManager& mgr) {
|
||||||
player.Stop();
|
player.Stop();
|
||||||
}
|
}
|
||||||
player.MoveToWR(offset, dt);
|
player.MoveToWR(offset, dt);
|
||||||
} else {
|
|
||||||
x168_24_canApplyForce = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue