-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
Description
I wanted to slightly change pathfinding algorithm to find a way to cells adjacent to goal. However,
setting is_goal function in navigator class to
static bool is_goal(location_t &pos, location_t &goal) {
return (std::max(abs(pos.x-goal.x),abs(pos.y-goal.y))<=1);
}
results in unexpected behavior (stopping 2 steps from goal, then teleporting to it). What is the right way to do this?
Reactions are currently unavailable