Last bug from detaching corrected
This commit is contained in:
1 parent
d07b885988
commit
e8a5204a31
1 file changed
+2
-3
@@ -169,7 +169,7 @@ function newStrategyPart () {
|
||||
attacchingCounters()
|
||||
|
||||
if (thisObject.isOnFocus !== true) { return }
|
||||
if (thisObject.isDragging !== true) { return }
|
||||
if (isDragging !== true) { return }
|
||||
if (thisObject.payload.chainParent !== undefined) { return }
|
||||
|
||||
let nearbyFloatingObjects = thisObject.payload.floatingObject.nearbyFloatingObjects
|
||||
@@ -256,7 +256,7 @@ function newStrategyPart () {
|
||||
}
|
||||
|
||||
function detachingPhysics () {
|
||||
if (thisObject.isDragging !== true) { return }
|
||||
if (isDragging !== 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
|
||||
@@ -633,4 +633,3 @@ function newStrategyPart () {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user