From 0eeb3c0ebb60399607114163c227618a318a3e6f Mon Sep 17 00:00:00 2001 From: Isaac Bowen Date: Fri, 2 Feb 2024 14:09:45 -0600 Subject: [PATCH] fixup --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 26421b3..b822fc2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -187,7 +187,7 @@ class Simulation { return Vector.normalise(perpendicular); } - getEdgeRepulsionForce(body: Bod, baseForce: number) { + getEdgeRepulsionForce(body: Body, baseForce: number) { const comfortableDistance = 100; // Distance from the edge where bodies start to feel "uncomfortable" // Calculate distance to the nearest edge on the X and Y axes