Added: New BoundingBox infrastructure into mesh_material, analogous to mesh_frame.

This commit is contained in:
Foxar
2020-12-21 18:48:11 +01:00
parent 974138d64e
commit d835f83e51
2 changed files with 13 additions and 2 deletions
+2
View File
@@ -9,6 +9,7 @@
*/
#include "../include/models/mesh_material.hpp"
#include "../include/models/bounding_box.hpp"
#include "../include/utils/debug.hpp"
#include "../include/utils/string.hpp"
#include <cstdlib>
@@ -132,4 +133,5 @@ void MeshMaterial::calculateBoundingBox(Vector3 *t_vertices, u32 t_vertCount)
boundingBox[6].set(hiX, hiY, lowZ);
boundingBox[7].set(hiX, hiY, hiZ);
_isBoundingBoxCalculated = true;
boundingBoxObj = new BoundingBox(boundingBox);
}