summaryrefslogtreecommitdiff
path: root/scene/resources/circle_shape_2d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/circle_shape_2d.cpp')
-rw-r--r--scene/resources/circle_shape_2d.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/resources/circle_shape_2d.cpp b/scene/resources/circle_shape_2d.cpp
index 7142309e28..10f8ab8a8a 100644
--- a/scene/resources/circle_shape_2d.cpp
+++ b/scene/resources/circle_shape_2d.cpp
@@ -70,6 +70,10 @@ Rect2 CircleShape2D::get_rect() const {
return rect;
}
+real_t CircleShape2D::get_enclosing_radius() const {
+ return radius;
+}
+
void CircleShape2D::draw(const RID &p_to_rid, const Color &p_color) {
Vector<Vector2> points;