mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
fix rotated aabb blocking check & refactor PlayerController
This commit is contained in:
parent
4b63bedde4
commit
d15624cd47
3 changed files with 6 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue