แก้ coding style ภาค 7

This commit is contained in:
Pitchaya Boonsarngsuk
2018-03-22 16:35:00 +00:00
parent 684878b1fd
commit 93af0e646a
5 changed files with 18 additions and 18 deletions

View File

@@ -81,7 +81,7 @@ export default function () {
y = target.y + target.vy - source.y - source.vy || jiggle();
l = Math.sqrt(x * x + y * y);
l = (l - dist) / l * dataSizeFactor * alpha;
x *= l, y *= l;
x *= l; y *= l;
// Set the calculated velocites for both nodes.
target.vx -= x;
target.vy -= y;