BUG FIXED: recording frozen state

This commit is contained in:
Luis Fernando Molina committed 2019-05-28 21:28:39 +02:00
1 parent 0878d2db73
commit b6af3d9deb
3 files changed
+6 -1

No files matched your search

+1
View File
@@ -330,6 +330,7 @@ function newStrategyPart () {
function detachingPhysics () {
if (isDragging !== 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