diff --git a/src/jsx/import/animation/nodes/collision.js b/src/jsx/import/animation/nodes/collision.js index 41b231fec..0ca22aa4c 100644 --- a/src/jsx/import/animation/nodes/collision.js +++ b/src/jsx/import/animation/nodes/collision.js @@ -71,8 +71,8 @@ function collision() { return function(quad, x1, y1, x2, y2) { if (quad.point && (quad.point !== node)) { const x = node.x - quad.point.x; - const y = node.y - quad.point.y, - let l = Math.sqrt(x * x + y * y), + const y = node.y - quad.point.y; + let l = Math.sqrt(x * x + y * y); const r = node.radius + quad.point.radius; if (l < r) {