mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51: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
|
|
@ -41,6 +41,7 @@ std::unique_ptr<Content> ContentBuilder::build() {
|
|||
def.rt.hitboxes[i].reserve(def.hitboxes.size());
|
||||
for (AABB aabb : def.hitboxes) {
|
||||
def.rotations.variants[i].transform(aabb);
|
||||
aabb.fix();
|
||||
def.rt.hitboxes[i].push_back(aabb);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue