diff options
Diffstat (limited to 'scene/resources/mesh.h')
-rw-r--r-- | scene/resources/mesh.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/resources/mesh.h b/scene/resources/mesh.h index 3a11a8e171..5243163a4d 100644 --- a/scene/resources/mesh.h +++ b/scene/resources/mesh.h @@ -107,6 +107,7 @@ private: AABB aabb; MorphTargetMode morph_target_mode; Vector<StringName> morph_targets; + AABB custom_aabb; mutable Ref<TriangleMesh> triangle_mesh; @@ -156,6 +157,9 @@ public: void add_surface_from_mesh_data(const Geometry::MeshData& p_mesh_data); + void set_custom_aabb(const AABB& p_custom); + AABB get_custom_aabb() const; + AABB get_aabb() const; virtual RID get_rid() const; |