mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
Kinda works, but not raycast
This commit is contained in:
parent
5f551d6888
commit
5c3eafb331
3 changed files with 35 additions and 12 deletions
|
|
@ -87,6 +87,12 @@ Content* ContentBuilder::build() {
|
|||
AABB aabb = hitbox;
|
||||
def->rotations.variants[i].transform(aabb);
|
||||
def->rt.hitboxes[i] = aabb;
|
||||
|
||||
def->rt.modelBoxes[i].reserve(def->modelBoxes.size());
|
||||
for (AABB aabb : def->modelBoxes) {
|
||||
def->rotations.variants[i].transform(aabb);
|
||||
def->rt.modelBoxes[i].push_back(aabb);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue