summaryrefslogtreecommitdiffstats
path: root/src/math/point.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/point.ts')
-rw-r--r--src/math/point.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/point.ts b/src/math/point.ts
index 23a0f84..0865b8f 100644
--- a/src/math/point.ts
+++ b/src/math/point.ts
@@ -26,13 +26,13 @@ export class Point implements Collidable {
const refMove = move.translate(tr);
- if (vec2.sqrDist(this.p, move.p1) > r * r && !refMove.passes(this.p))
+ if (vec2.sqrDist(this.p, move.src) > r * r && !refMove.passes(this.p))
return false;
normal(t, t);
const tang = new Line(this.p, t);
- tang.projectPoint(out, refMove.p2);
+ tang.projectPoint(out, refMove.dest);
vec2.sub(out, out, tr);
return true;