แก้ coding style ภาค 4
This commit is contained in:
@@ -41,7 +41,7 @@ export default function () {
|
||||
y = target.y + target.vy - source.y - source.vy || jiggle();
|
||||
l = Math.sqrt(x * x + y * y);
|
||||
l = (l - distances[i * (i - 1) / 2 + j]) / l * dataSizeFactor * alpha;
|
||||
x *= l, y *= l;
|
||||
x *= l; y *= l;
|
||||
target.vx -= x;
|
||||
target.vy -= y;
|
||||
source.vx += x;
|
||||
|
||||
Reference in New Issue
Block a user