edgeCollisionPosition already accounts for the ship radius
This commit is contained in:
@@ -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,
|
||||
|
||||
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
Reference in New Issue
Block a user