Detaching Freeed Bug Fix

This commit is contained in:
Luis Fernando Molina committed 2019-05-29 13:08:18 +02:00
1 parent 0d1d3b1b52
commit 27f312df42
1 file changed
+2 -1
+2 -1
View File
@@ -330,7 +330,7 @@ function newStrategyPart () {
function detachingPhysics () {
if (isDragging !== true) { return }
if (thisObject.isFrozen !== true) { return }
if (thisObject.isFrozen === true) { return }
let distanceToChainParent = Math.sqrt(Math.pow(thisObject.payload.position.x - thisObject.payload.targetPosition.x, 2) + Math.pow(thisObject.payload.position.y - thisObject.payload.targetPosition.y, 2))
let ratio = distanceToChainParent / previousDistance
@@ -760,3 +760,4 @@ function newStrategyPart () {
}
}
}