summaryrefslogtreecommitdiff
path: root/scene/resources/sphere_shape.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-02-10 16:25:21 +0100
committerGitHub <noreply@github.com>2020-02-10 16:25:21 +0100
commit2dd73b1ffad10824a9f66e3ac04f4e2a7d51a85e (patch)
tree683288f29c949e731bcc34c62212ed7f184ba76a /scene/resources/sphere_shape.cpp
parent1dd0eb4f339a9f0ae78077aaac3dafeafdf78279 (diff)
parent383c583a0b46b36ab9b0de57d0f3f7bdecb62fc8 (diff)
Merge pull request #34776 from AndreaCatania/nav_pr
Integrated the new `NavigationServer` and `NavigationServer2D`
Diffstat (limited to 'scene/resources/sphere_shape.cpp')
-rw-r--r--scene/resources/sphere_shape.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/resources/sphere_shape.cpp b/scene/resources/sphere_shape.cpp
index f408717834..56121b6941 100644
--- a/scene/resources/sphere_shape.cpp
+++ b/scene/resources/sphere_shape.cpp
@@ -55,6 +55,10 @@ Vector<Vector3> SphereShape::get_debug_mesh_lines() {
return points;
}
+real_t SphereShape::get_enclosing_radius() const {
+ return radius;
+}
+
void SphereShape::_update_shape() {
PhysicsServer::get_singleton()->shape_set_data(get_shape(), radius);