Added collision avoidance to MoveGlobal routine
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
#include "mg_planner/config.hpp"
|
||||
|
||||
namespace mg {
|
||||
bool ObstacleManager::check_collision(glm::ivec2 pos, float size) {
|
||||
bool check_collision(glm::ivec2 pos, float size) {
|
||||
return (pos.x >= MIN_X && pos.x < MAX_X) && (pos.y >= MIN_Y && pos.y < MAX_Y);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user