From b3f6d79c016c90868582753de0288f5f3f042cb2 Mon Sep 17 00:00:00 2001 From: Catalin Constantin Mititiuc Date: Sun, 4 Jan 2026 23:23:53 -0800 Subject: [PATCH] edgeCollisionPosition already accounts for the ship radius --- html/images/space.svg | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/html/images/space.svg b/html/images/space.svg index df33c92..a2c5360 100644 --- a/html/images/space.svg +++ b/html/images/space.svg @@ -208,12 +208,12 @@ const s = { position: { x: 0, y: 0 }, - // velocity: { x: 0, y: 0 }, + velocity: { x: 0, y: 0 }, - velocity: { x: 5, y: 7 }, + // velocity: { x: 5, y: 7 }, // velocity: { x: 5*mult, y: 8*mult }, - acceleration: { x: 5, y: 7 }, - // acceleration: { x: 0, y: 0 }, + // acceleration: { x: 5, y: 7 }, + acceleration: { x: 0, y: 0 }, rotate: 0, collision: null, isLanded: false, @@ -837,7 +837,8 @@ // const { xa: x3, ya: y3, xb: x4, yb: y4 } = edgeSeg; // const baseLine = { x1: xa, y1: ya, x2: xb, y2: yb }; - const baseLine = { x1: edgeSeg.xa, y1: edgeSeg.ya, x2: edgeSeg.xb, y2: edgeSeg.yb }; + // const baseLine = { x1: edgeSeg.xa, y1: edgeSeg.ya, x2: edgeSeg.xb, y2: edgeSeg.yb }; + const baseLine = { x1: xa, y1: ya, x2: xb, y2: yb }; const velocityLine = { x1: x,