From fa986d369f7378861ee7c692923f1a76082f13e8 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Tue, 17 Nov 2020 14:35:39 +0800 Subject: [PATCH] Center/WorldCenter/LocalCenter use Vector4f instead Vector3f. --- inc/hgl/graph/SceneNode.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/inc/hgl/graph/SceneNode.h b/inc/hgl/graph/SceneNode.h index b58fe19a..707cc978 100644 --- a/inc/hgl/graph/SceneNode.h +++ b/inc/hgl/graph/SceneNode.h @@ -32,9 +32,9 @@ namespace hgl AABB LocalBoundingBox; ///<本地坐标绑定盒 AABB WorldBoundingBox; ///<世界坐标绑定盒 - Vector3f Center; ///<中心点 - Vector3f LocalCenter; ///<本地坐标中心点 - Vector3f WorldCenter; ///<世界坐标中心点 + Vector4f Center; ///<中心点 + Vector4f LocalCenter; ///<本地坐标中心点 + Vector4f WorldCenter; ///<世界坐标中心点 public: @@ -97,9 +97,9 @@ namespace hgl virtual const AABB & GetLocalBoundingBox ()const{return LocalBoundingBox;} ///<取得本地坐标绑定盒 virtual const AABB & GetWorldBoundingBox ()const{return WorldBoundingBox;} ///<取得世界坐标绑定盒 - virtual const Vector3f & GetCenter ()const{return Center;} ///<取得中心点 - virtual const Vector3f & GetLocalCenter ()const{return LocalCenter;} ///<取得本地坐标中心点 - virtual const Vector3f & GetWorldCenter ()const{return WorldCenter;} ///<取得世界坐标中心点 + virtual const Vector4f & GetCenter ()const{return Center;} ///<取得中心点 + virtual const Vector4f & GetLocalCenter ()const{return LocalCenter;} ///<取得本地坐标中心点 + virtual const Vector4f & GetWorldCenter ()const{return WorldCenter;} ///<取得世界坐标中心点 public: //渲染列表相关方法