Skip to content

Commit

Permalink
fix shimmy direction :)
Browse files Browse the repository at this point in the history
  • Loading branch information
democat3457 committed Nov 19, 2024
1 parent eeddbf7 commit 1ae3ece
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/server/robot/path-materializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
}
}
Expand Down

0 comments on commit 1ae3ece

Please sign in to comment.