From 01f412124261149356386927a10b16c925742980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20Sobczy=C5=84ski?= <32263891+h4570@users.noreply.github.com> Date: Thu, 4 Aug 2022 22:24:40 +0200 Subject: [PATCH] Update bbox.cpp --- engine/src/renderer/3d/bbox/bbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/renderer/3d/bbox/bbox.cpp b/engine/src/renderer/3d/bbox/bbox.cpp index 9d4343c..bd07a5a 100644 --- a/engine/src/renderer/3d/bbox/bbox.cpp +++ b/engine/src/renderer/3d/bbox/bbox.cpp @@ -29,7 +29,7 @@ BBox::BBox(const BBox& t_bbox) : CoreBBox(t_bbox) { setData(); } BBox::BBox(const BBox& t_bbox, const M4x4& t_matrix) { for (u32 i = 0; i < 8; i++) { - _vertices[i] = t_matrix * _vertices[i]; + _vertices[i] = t_matrix * t_bbox._vertices[i]; } setData();