committed by
GitHub
parent
2b03c91823
commit
11d0799e1a
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user