From 1ae3eceab933e35184497d57f967a3455a48815e Mon Sep 17 00:00:00 2001 From: Colin Wong Date: Tue, 19 Nov 2024 06:09:59 -0600 Subject: [PATCH] fix shimmy direction :) --- src/server/robot/path-materializer.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/server/robot/path-materializer.ts b/src/server/robot/path-materializer.ts index 04d94aa..6672e3b 100644 --- a/src/server/robot/path-materializer.ts +++ b/src/server/robot/path-materializer.ts @@ -267,12 +267,12 @@ function findShimmyLocation( return dist1 < dist2 ? new Position( - shimmyPos.x + val1.x * moveDistance, - shimmyPos.y + val1.y * moveDistance, + shimmyPos.x + orth1.x * moveDistance, + shimmyPos.y + orth1.y * moveDistance, ) : new Position( - shimmyPos.x + val2.x * moveDistance, - shimmyPos.y + val2.y * moveDistance, + shimmyPos.x + orth2.x * moveDistance, + shimmyPos.y + orth2.y * moveDistance, ); } }