แก้ coding style ภาค 7
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user