mirror of https://github.com/AxioDL/metaforce.git
I'm dumb, it is `std::min'
This commit is contained in:
parent
8c2832d13e
commit
95c944563b
|
@ -695,7 +695,7 @@ void CMorphBall::ApplySpiderBallRollForces(const CFinalInput& input, CStateManag
|
||||||
x18f8_spiderSurfacePivotTargetAngle = angle;
|
x18f8_spiderSurfacePivotTargetAngle = angle;
|
||||||
}
|
}
|
||||||
const float minAngle =
|
const float minAngle =
|
||||||
std::max(std::fabs(x18f8_spiderSurfacePivotTargetAngle - x18f4_spiderSurfacePivotAngle), 0.2f);
|
std::min(std::fabs(x18f8_spiderSurfacePivotTargetAngle - x18f4_spiderSurfacePivotAngle), 0.2f);
|
||||||
x18f4_spiderSurfacePivotAngle = minAngle * 1.f + x18f4_spiderSurfacePivotAngle;
|
x18f4_spiderSurfacePivotAngle = minAngle * 1.f + x18f4_spiderSurfacePivotAngle;
|
||||||
x189c_spiderInterpBetweenPoints =
|
x189c_spiderInterpBetweenPoints =
|
||||||
x18c4_spiderSurfaceTransform.rotate(zeus::CTransform::RotateY(x18f4_spiderSurfacePivotAngle).basis[2]);
|
x18c4_spiderSurfaceTransform.rotate(zeus::CTransform::RotateY(x18f4_spiderSurfacePivotAngle).basis[2]);
|
||||||
|
|
Loading…
Reference in New Issue