summaryrefslogtreecommitdiff
path: root/scene/resources/shape.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/shape.h')
-rw-r--r--scene/resources/shape.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/scene/resources/shape.h b/scene/resources/shape.h
index 8fc265f3bc..e5ccbf7e28 100644
--- a/scene/resources/shape.h
+++ b/scene/resources/shape.h
@@ -32,6 +32,7 @@
#define SHAPE_H
#include "core/resource.h"
+
class ArrayMesh;
class Shape : public Resource {
@@ -57,8 +58,10 @@ public:
Ref<ArrayMesh> get_debug_mesh();
virtual Vector<Vector3> get_debug_mesh_lines() = 0; // { return Vector<Vector3>(); }
+ /// Returns the radius of a sphere that fully enclose this shape
+ virtual real_t get_enclosing_radius() const = 0;
- void add_vertices_to_array(PoolVector<Vector3> &array, const Transform &p_xform);
+ void add_vertices_to_array(Vector<Vector3> &array, const Transform &p_xform);
real_t get_margin() const;
void set_margin(real_t p_margin);