diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-02-21 09:00:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-21 09:00:40 +0100 |
commit | 53a2b0a5cec83628474b5f95312fd008e7c213ef (patch) | |
tree | 59739c28e19298ee54b2911ebb754dedcd443c2a | |
parent | 5109f2ca67dfe6f55f745a6ccc1d41d700f146ff (diff) | |
parent | 39fb83630dff7b6f6c3544dcc9ed70ed459aaf43 (diff) |
Merge pull request #16876 from AndreaCatania/patch-1
Added forgotten infinite_inertia to bindings
-rw-r--r-- | scene/2d/physics_body_2d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/physics_body_2d.cpp b/scene/2d/physics_body_2d.cpp index e5d1b99a18..feb11089d0 100644 --- a/scene/2d/physics_body_2d.cpp +++ b/scene/2d/physics_body_2d.cpp @@ -887,7 +887,7 @@ void RigidBody2D::_bind_methods() { ClassDB::bind_method(D_METHOD("set_can_sleep", "able_to_sleep"), &RigidBody2D::set_can_sleep); ClassDB::bind_method(D_METHOD("is_able_to_sleep"), &RigidBody2D::is_able_to_sleep); - ClassDB::bind_method(D_METHOD("test_motion", "motion", "margin", "result"), &RigidBody2D::_test_motion, DEFVAL(0.08), DEFVAL(Variant())); + ClassDB::bind_method(D_METHOD("test_motion", "motion", "infinite_inertia", "margin", "result"), &RigidBody2D::_test_motion, DEFVAL(true), DEFVAL(0.08), DEFVAL(Variant())); ClassDB::bind_method(D_METHOD("_direct_state_changed"), &RigidBody2D::_direct_state_changed); ClassDB::bind_method(D_METHOD("_body_enter_tree"), &RigidBody2D::_body_enter_tree); |