WorldBoundingBox改为OBB

This commit is contained in:
2025-07-27 07:42:24 +08:00
parent 69ed5eb859
commit 8c7ed92b14
4 changed files with 8 additions and 6 deletions

2
CMCore

Submodule CMCore updated: 7139219855...0ed44f0531

2
CMUtil

Submodule CMUtil updated: d67a309f94...7a72b077e8

View File

@@ -4,6 +4,7 @@
#include<hgl/type/IDName.h>
#include<hgl/graph/SceneOrient.h>
#include<hgl/graph/AABB.h>
#include<hgl/graph/OBB.h>
#include<hgl/component/Component.h>
namespace hgl::io
@@ -45,7 +46,7 @@ namespace hgl::graph
AABB bounding_box; ///<绑定盒
AABB local_bounding_box; ///<本地坐标绑定盒
//AABB WorldBoundingBox; ///<世界坐标绑定盒
OBB world_bounding_box; ///<世界坐标绑定盒
protected:
@@ -115,8 +116,9 @@ namespace hgl::graph
{
SetParent(nullptr); //清除父节点
bounding_box.SetZero();
local_bounding_box.SetZero();
bounding_box.Clear();
local_bounding_box.Clear();
world_bounding_box.Clear();
child_nodes.Clear();
component_set.Clear();