0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-12-25 13:39:06 -05:00

clamp resolver slop

This commit is contained in:
liabru 2022-08-07 17:22:04 +01:00
parent 9dc6be78f6
commit ee7b00897d

View file

@ -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