WorldBoundingBox改为OBB
This commit is contained in:
2
CMCore
2
CMCore
Submodule CMCore updated: 7139219855...0ed44f0531
Submodule CMSceneGraph updated: c3df1ca2f8...b914dbfb66
2
CMUtil
2
CMUtil
Submodule CMUtil updated: d67a309f94...7a72b077e8
@@ -4,6 +4,7 @@
|
|||||||
#include<hgl/type/IDName.h>
|
#include<hgl/type/IDName.h>
|
||||||
#include<hgl/graph/SceneOrient.h>
|
#include<hgl/graph/SceneOrient.h>
|
||||||
#include<hgl/graph/AABB.h>
|
#include<hgl/graph/AABB.h>
|
||||||
|
#include<hgl/graph/OBB.h>
|
||||||
#include<hgl/component/Component.h>
|
#include<hgl/component/Component.h>
|
||||||
|
|
||||||
namespace hgl::io
|
namespace hgl::io
|
||||||
@@ -45,7 +46,7 @@ namespace hgl::graph
|
|||||||
|
|
||||||
AABB bounding_box; ///<绑定盒
|
AABB bounding_box; ///<绑定盒
|
||||||
AABB local_bounding_box; ///<本地坐标绑定盒
|
AABB local_bounding_box; ///<本地坐标绑定盒
|
||||||
//AABB WorldBoundingBox; ///<世界坐标绑定盒
|
OBB world_bounding_box; ///<世界坐标绑定盒
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
@@ -115,8 +116,9 @@ namespace hgl::graph
|
|||||||
{
|
{
|
||||||
SetParent(nullptr); //清除父节点
|
SetParent(nullptr); //清除父节点
|
||||||
|
|
||||||
bounding_box.SetZero();
|
bounding_box.Clear();
|
||||||
local_bounding_box.SetZero();
|
local_bounding_box.Clear();
|
||||||
|
world_bounding_box.Clear();
|
||||||
|
|
||||||
child_nodes.Clear();
|
child_nodes.Clear();
|
||||||
component_set.Clear();
|
component_set.Clear();
|
||||||
|
Reference in New Issue
Block a user