From ee7b00897de6454ca445224d134cd4bd237db45a Mon Sep 17 00:00:00 2001 From: liabru Date: Sun, 7 Aug 2022 17:22:04 +0100 Subject: [PATCH] clamp resolver slop --- src/collision/Resolver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collision/Resolver.js b/src/collision/Resolver.js index c643ebf..86a946c 100644 --- a/src/collision/Resolver.js +++ b/src/collision/Resolver.js @@ -62,7 +62,7 @@ var Bounds = require('../geometry/Bounds'); contactShare, positionImpulse, positionDampen = Resolver._positionDampen * Common.clamp(20 / positionIterations, 0, 1), - slopDampen = delta / Common._timeUnit, + slopDampen = Common.clamp(delta / Common._timeUnit, 0, 1), pairsLength = pairs.length; // find impulses required to resolve penetration