diff options
Diffstat (limited to 'scene/resources/shape_2d.h')
-rw-r--r-- | scene/resources/shape_2d.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/resources/shape_2d.h b/scene/resources/shape_2d.h index 13ad7492ae..bb4688a02d 100644 --- a/scene/resources/shape_2d.h +++ b/scene/resources/shape_2d.h @@ -58,7 +58,9 @@ public: virtual void draw(const RID &p_to_rid, const Color &p_color) {} virtual Rect2 get_rect() const { return Rect2(); } - virtual RID get_rid() const; + /// Returns the radius of a circle that fully enclose this shape + virtual real_t get_enclosing_radius() const = 0; + virtual RID get_rid() const override; Shape2D(); ~Shape2D(); }; |