diff options
author | squash <ibrahimsenpai0@gmail.com> | 2022-10-20 11:26:49 +0300 |
---|---|---|
committer | squash <ibrahimsenpai0@gmail.com> | 2022-10-20 11:26:49 +0300 |
commit | 247a93845ddcfa1306aaf8cc41a4a133ab707fcf (patch) | |
tree | c50629b3c312fab38d8b8b1ce968c1eeb6aeedbf /scene/resources | |
parent | 3a59c833f1b7e34ddef57522800288a0dee8562d (diff) |
Expose Shape2D::get_rect to scripting
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/shape_2d.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/shape_2d.cpp b/scene/resources/shape_2d.cpp index fe43f345d4..61daf801e8 100644 --- a/scene/resources/shape_2d.cpp +++ b/scene/resources/shape_2d.cpp @@ -105,6 +105,7 @@ void Shape2D::_bind_methods() { ClassDB::bind_method(D_METHOD("collide_and_get_contacts", "local_xform", "with_shape", "shape_xform"), &Shape2D::collide_and_get_contacts); ClassDB::bind_method(D_METHOD("collide_with_motion_and_get_contacts", "local_xform", "local_motion", "with_shape", "shape_xform", "shape_motion"), &Shape2D::collide_with_motion_and_get_contacts); ClassDB::bind_method(D_METHOD("draw", "canvas_item", "color"), &Shape2D::draw); + ClassDB::bind_method(D_METHOD("get_rect"), &Shape2D::get_rect); ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "custom_solver_bias", PROPERTY_HINT_RANGE, "0,1,0.001"), "set_custom_solver_bias", "get_custom_solver_bias"); } |