Changed: Replaced old getBoundingBox and getBoundingBoxVertex functions with new ones, using the new bounding_box class infrastructure.

This commit is contained in:
Foxar
2020-12-21 18:31:23 +01:00
parent ae15906c99
commit 974138d64e
+4 -2
View File
@@ -80,13 +80,15 @@ public:
* Returns bounding box (AABB). * Returns bounding box (AABB).
* Total length: 8 * Total length: 8
*/ */
Vector3 *getBoundingBox() { return boundingBox; }; //Vector3 *getBoundingBox() { return boundingBox; };
Vector3 *getBoundingBox() { return boundingBoxObj->getVertices(); };
/** /**
* Returns bounding box (AABB) vertex. * Returns bounding box (AABB) vertex.
* Total length: 8 * Total length: 8
*/ */
Vector3 &getBoundingBoxVertex(const u8 &i) { return boundingBox[i]; }; //Vector3 &getBoundingBoxVertex(const u8 &i) { return boundingBox[i]; };
Vector3 &getBoundingBoxVertex(const u8 &i) { return boundingBoxObj->getVertex(i); };
/** /**
* Returns bounding box (AABB) object pointer. * Returns bounding box (AABB) object pointer.