Mob Spin Fix Update (#37603)

Kid named negative velocity
This commit is contained in:
Princess Cheeseballs
2025-05-25 12:09:25 -07:00
committed by GitHub
parent 2b03c91823
commit 11d0799e1a

View File

@@ -416,7 +416,7 @@ public abstract partial class SharedMoverController : VirtualController
public void Friction(float minimumFrictionSpeed, float frameTime, float friction, ref float velocity) public void Friction(float minimumFrictionSpeed, float frameTime, float friction, ref float velocity)
{ {
if (velocity < minimumFrictionSpeed) if (Math.Abs(velocity) < minimumFrictionSpeed)
return; return;
// This equation is lifted from the Physics Island solver. // This equation is lifted from the Physics Island solver.