Daniele Bartolini 11 年之前
父节点
当前提交
66c34c32da
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      engine/core/math/math_types.h

+ 7 - 0
engine/core/math/math_types.h

@@ -169,6 +169,13 @@ struct AABB
 	Vector3 max;
 };
 
+/// @ingroup Math
+struct OBB
+{
+	Matrix4x4 tm;
+	AABB aabb;
+};
+
 /// 3D Plane.
 /// The form is ax + by + cz + d = 0
 /// where: d = -vector3::dot(n, p)