fix rotated aabb blocking check & refactor PlayerController

This commit is contained in:
MihailRis
2024-11-05 03:15:11 +03:00
parent 4b63bedde4
commit d15624cd47
3 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ struct AABB {
return (a + b) * 0.5f;
}
inline AABB move(glm::vec3 pos) const {
inline AABB translated(const glm::vec3& pos) const {
return AABB(a + pos, b + pos);
}