mirror of https://github.com/AxioDL/metaforce.git
Merge remote-tracking branch 'origin/main' into dawn
This commit is contained in:
commit
b2b03f1ace
|
@ -653,7 +653,7 @@ void CMorphBall::ApplySpiderBallRollForces(const CFinalInput& input, CStateManag
|
||||||
x18b4_linVelDamp = 0.4f;
|
x18b4_linVelDamp = 0.4f;
|
||||||
x18b8_angVelDamp = 0.2f;
|
x18b8_angVelDamp = 0.2f;
|
||||||
float viewControlMag = viewSurfaceForces.dot(x189c_spiderInterpBetweenPoints.normalized());
|
float viewControlMag = viewSurfaceForces.dot(x189c_spiderInterpBetweenPoints.normalized());
|
||||||
if (continueTrackForce && x1920_spiderForcesReset) {
|
if (continueTrackForce && !x1920_spiderForcesReset) {
|
||||||
viewControlMag = x1918_spiderViewControlMag;
|
viewControlMag = x1918_spiderViewControlMag;
|
||||||
} else {
|
} else {
|
||||||
x1918_spiderViewControlMag = viewControlMag;
|
x1918_spiderViewControlMag = viewControlMag;
|
||||||
|
|
|
@ -197,7 +197,7 @@ void CScriptSpiderBallWaypoint::GetClosestPointAlongWaypoints(CStateManager& mgr
|
||||||
closestPoint = lastPoint;
|
closestPoint = lastPoint;
|
||||||
if (wp->PreviousWaypoint(mgr, ECheckActiveWaypoint::Check) != kInvalidUniqueId) {
|
if (wp->PreviousWaypoint(mgr, ECheckActiveWaypoint::Check) != kInvalidUniqueId) {
|
||||||
wp = static_cast<const CScriptSpiderBallWaypoint*>(
|
wp = static_cast<const CScriptSpiderBallWaypoint*>(
|
||||||
mgr.GetObjectById(wp->PreviousWaypoint(mgr, ECheckActiveWaypoint::SkipCheck)));
|
mgr.GetObjectById(wp->PreviousWaypoint(mgr, ECheckActiveWaypoint::Check)));
|
||||||
deltaBetweenPoints = lastPoint - wp->GetTranslation();
|
deltaBetweenPoints = lastPoint - wp->GetTranslation();
|
||||||
interpDeltaBetweenPoints = deltaBetweenPoints;
|
interpDeltaBetweenPoints = deltaBetweenPoints;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue