bbox fixes

This commit is contained in:
h4570
2022-07-23 18:34:35 +02:00
parent 1ae7939cc3
commit 23e98afe91
5 changed files with 36 additions and 2 deletions
+5
View File
@@ -22,6 +22,8 @@ class BBox : public CoreBBox {
explicit BBox(CoreBBox** t_bboxes, const u32& count);
explicit BBox(Vec4* t_vertices, u32* faces, u32 t_count);
explicit BBox(Vec4* t_vertices, u32 t_count);
explicit BBox(const BBox& t_bbox, const M4x4& t_matrix);
explicit BBox(const BBox& t_bbox);
explicit BBox(Vec4* t_vertices);
const float& getHeight() { return _height; }
const float& getDepth() { return _depth; }
@@ -52,6 +54,9 @@ class BBox : public CoreBBox {
* */
void getMinMax(Vec4* res_min, Vec4* res_max);
/** Get new transformed BBox by model matrix */
BBox getTransformed(const M4x4& t_matrix);
protected:
float _height, _depth, _width;
Vec4 _centerVector;