From f008e98ea2392070053f13cd3fcac64c5430588d Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 22 May 2022 08:23:23 +0200 Subject: Decrease SphereShape3D's default radius to 0.5 to match primitive mesh The SphereMesh primitive mesh's size was recently decreased, but unlike other primitive meshes, the sphere shape's radius wasn't adjusted accordingly. --- scene/resources/sphere_shape_3d.cpp | 2 +- scene/resources/sphere_shape_3d.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'scene') diff --git a/scene/resources/sphere_shape_3d.cpp b/scene/resources/sphere_shape_3d.cpp index fc1e610e98..92efe3ce6f 100644 --- a/scene/resources/sphere_shape_3d.cpp +++ b/scene/resources/sphere_shape_3d.cpp @@ -83,5 +83,5 @@ void SphereShape3D::_bind_methods() { SphereShape3D::SphereShape3D() : Shape3D(PhysicsServer3D::get_singleton()->shape_create(PhysicsServer3D::SHAPE_SPHERE)) { - set_radius(1.0); + set_radius(0.5); } diff --git a/scene/resources/sphere_shape_3d.h b/scene/resources/sphere_shape_3d.h index 20887dd092..8f77378ef4 100644 --- a/scene/resources/sphere_shape_3d.h +++ b/scene/resources/sphere_shape_3d.h @@ -35,7 +35,7 @@ class SphereShape3D : public Shape3D { GDCLASS(SphereShape3D, Shape3D); - float radius = 1.0f; + float radius = 0.5f; protected: static void _bind_methods(); -- cgit v1.2.3