mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 22:27:43 +00:00
Several collision fixes
This commit is contained in:
@@ -89,7 +89,7 @@ void CBSAttack::UpdatePhysicsActor(CBodyController& bc, float dt)
|
||||
zeus::CVector3f delta = x20_targetPos - act->GetTranslation();
|
||||
float td = x30_alignTargetPosTime - x2c_alignTargetPosStartTime;
|
||||
if (dt > 0.f)
|
||||
delta *= dt / td;
|
||||
delta *= zeus::CVector3f(dt / td);
|
||||
zeus::CVector3f localDelta = act->GetTransform().transposeRotate(delta);
|
||||
act->ApplyImpulseWR(act->GetMoveToORImpulseWR(localDelta, dt), zeus::CAxisAngle::sIdentity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user