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:
parent
9dc6be78f6
commit
ee7b00897d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue