diff --git a/src/collision/Resolver.js b/src/collision/Resolver.js index 7ea51ad..c643ebf 100644 --- a/src/collision/Resolver.js +++ b/src/collision/Resolver.js @@ -230,9 +230,9 @@ var Bounds = require('../geometry/Bounds'); timeScaleSquared = timeScale * timeScale, timeScaleCubed = timeScaleSquared * timeScale, restingThresh = -Resolver._restingThresh * timeScale, - restingThreshTangent = Resolver._restingThreshTangent * timeScale, + restingThreshTangent = Resolver._restingThreshTangent, frictionNormalMultiplier = Resolver._frictionNormalMultiplier * timeScale, - frictionMaxStatic = Resolver._frictionMaxStatic * timeScale, + frictionMaxStatic = Resolver._frictionMaxStatic, pairsLength = pairs.length, tangentImpulse, maxFriction, diff --git a/src/constraint/Constraint.js b/src/constraint/Constraint.js index eda3ee4..e6e6948 100644 --- a/src/constraint/Constraint.js +++ b/src/constraint/Constraint.js @@ -188,7 +188,7 @@ var Common = require('../core/Common'); isRigid = constraint.stiffness >= 1 || constraint.length === 0, stiffness = isRigid ? constraint.stiffness * timeScale : constraint.stiffness * timeScale * timeScale, - damping = constraint.damping * timeScale * timeScale, + damping = constraint.damping * timeScale, force = Vector.mult(delta, difference * stiffness), massTotal = (bodyA ? bodyA.inverseMass : 0) + (bodyB ? bodyB.inverseMass : 0), inertiaTotal = (bodyA ? bodyA.inverseInertia : 0) + (bodyB ? bodyB.inverseInertia : 0),