diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-05-05 15:17:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-05 15:17:36 +0200 |
commit | e144ff0445b9e59a4733b253cdd352d52ee301bc (patch) | |
tree | c333d3fe7ddf1ef6e94bf2f0978d3358b34d1030 /scene/resources | |
parent | d1801f976ff49ff6730c5b45d082f369ec27ec9b (diff) | |
parent | 7352a4c0d964d7aa7c3180fd493079107a4c5217 (diff) |
Merge pull request #48315 from nekomatata/expose-physics-debug-shape
Expose get_debug_mesh in Shape3D to scripting API
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/shape_3d.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/shape_3d.cpp b/scene/resources/shape_3d.cpp index 5761a405ce..cb44e059a3 100644 --- a/scene/resources/shape_3d.cpp +++ b/scene/resources/shape_3d.cpp @@ -102,6 +102,8 @@ void Shape3D::_bind_methods() { ClassDB::bind_method(D_METHOD("set_margin", "margin"), &Shape3D::set_margin); ClassDB::bind_method(D_METHOD("get_margin"), &Shape3D::get_margin); + ClassDB::bind_method(D_METHOD("get_debug_mesh"), &Shape3D::get_debug_mesh); + ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "margin", PROPERTY_HINT_RANGE, "0.001,10,0.001"), "set_margin", "get_margin"); } |