diff --git a/html/images/space.svg b/html/images/space.svg
index a2c5360..26416b0 100644
--- a/html/images/space.svg
+++ b/html/images/space.svg
@@ -209,6 +209,7 @@
const s = {
position: { x: 0, y: 0 },
velocity: { x: 0, y: 0 },
+ // velocity: { x: -100, y: -100 },
// velocity: { x: 5, y: 7 },
// velocity: { x: 5*mult, y: 8*mult },
@@ -916,7 +917,7 @@
const positionSeg = { xa: x, ya: y, xb: xc, yb: yc };
- // console.log("positionSeg", positionSeg);
+ console.log("positionSeg", positionSeg);
const edgeCollision = efs.find(({ edge, wall }) => {
const { xa, ya, xb, yb } = edge;
@@ -941,15 +942,10 @@
const roundedT = +t.toFixed(2);
const roundedS = +s.toFixed(2);
- console.log("positionSeg", positionSeg);
console.log("edgeSeg", edgeSeg);
console.log("s", roundedS, "t", roundedT);
- // return roundedS >= 0 && roundedS <= 1 && roundedT >= 0 && roundedT <= 1;
- return roundedS <= 1 && roundedT >= 0 && roundedT <= 1;
- // return roundedS >= 0 && roundedS <= 1 && roundedT <= 1;
- // return roundedS >= 0 && roundedS <= 1 && roundedT <= 1;
- // return false;
+ return roundedS >= 0 && roundedS <= 1 && roundedT >= 0 && roundedT <= 1;
});
efs.forEach(({ edge, wall }) => {