BUG FIXED: recording frozen state
This commit is contained in:
1 parent
0878d2db73
commit
b6af3d9deb
3 files changed
+6
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user