removed Center/LocalCenter/WorldCenter from SceneNode.

This commit is contained in:
hyzboy 2024-07-17 01:38:46 +08:00
parent 8ebb3095a7
commit 30bb77d437
2 changed files with 1 additions and 9 deletions

2
CMCore

@ -1 +1 @@
Subproject commit 0f236d9bc06803cce037fb6391c123cc99e81b90 Subproject commit b07a4bb5be991df77d601c78924f15b5ee8c95cf

View File

@ -22,10 +22,6 @@ namespace hgl
AABB LocalBoundingBox; ///<本地坐标绑定盒 AABB LocalBoundingBox; ///<本地坐标绑定盒
//AABB WorldBoundingBox; ///<世界坐标绑定盒 //AABB WorldBoundingBox; ///<世界坐标绑定盒
Vector4f Center; ///<中心点
Vector4f LocalCenter; ///<本地坐标中心点
Vector4f WorldCenter; ///<世界坐标中心点
Renderable *render_obj=nullptr; ///<可渲染实例 Renderable *render_obj=nullptr; ///<可渲染实例
public: public:
@ -98,10 +94,6 @@ namespace hgl
virtual const AABB & GetBoundingBox ()const{return BoundingBox;} ///<取得绑定盒 virtual const AABB & GetBoundingBox ()const{return BoundingBox;} ///<取得绑定盒
virtual const AABB & GetLocalBoundingBox ()const{return LocalBoundingBox;} ///<取得本地坐标绑定盒 virtual const AABB & GetLocalBoundingBox ()const{return LocalBoundingBox;} ///<取得本地坐标绑定盒
// virtual const AABB & GetWorldBoundingBox ()const{return WorldBoundingBox;} ///<取得世界坐标绑定盒 // virtual const AABB & GetWorldBoundingBox ()const{return WorldBoundingBox;} ///<取得世界坐标绑定盒
virtual const Vector4f & GetCenter ()const{return Center;} ///<取得中心点
virtual const Vector4f & GetLocalCenter ()const{return LocalCenter;} ///<取得本地坐标中心点
virtual const Vector4f & GetWorldCenter ()const{return WorldCenter;} ///<取得世界坐标中心点
};//class SceneNode };//class SceneNode
}//namespace graph }//namespace graph
}//namespace hgl }//namespace hgl