Added lidar opponent tracking

This commit is contained in:
2025-05-06 03:09:12 +02:00
committed by Pimpest
parent abf5717286
commit 50106a439b
4 changed files with 223 additions and 1 deletions

View File

@ -153,7 +153,7 @@ namespace mg {
double ObstacleManager::dist_to_bounds(glm::dvec2 pos, glm::dvec2 size, double rot) {
// Find me
const glm::dmat2 rot_mat{ { glm::cos(rot), -glm::sin(rot) }, { glm::sin(rot), glm::cos(rot) } };
const glm::dmat2 rot_mat{ { glm::cos(rot), glm::sin(rot) }, { -glm::sin(rot), glm::cos(rot) } };
return ObstacleManager::dist_to_bounds(pos, size, rot_mat);
}