tension physics adjustment

This commit is contained in:
Luis Fernando Molina committed 2019-12-12 08:02:30 +01:00
1 parent 8629139522
commit f7dc87e918
1 file changed
+1 -1
+1 -1
View File
@@ -245,7 +245,7 @@ function newFloatingObject () {
thisObject.payload.angle = thisObject.payload.angle - 360
}
if (distanceToChainParent > 1000) { return } // this is introduced to avoid edges cases when importing workspaces.
if (distanceToChainParent > 2000) { return } // this is introduced to avoid edges cases when importing workspaces.
newPosition = {
x: parent.payload.position.x + distanceToChainParent * Math.cos(toRadians(thisObject.payload.angle)),