diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-10-09 11:01:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-09 11:01:36 +0200 |
commit | 8e9b99fe59a360c0c9822e8e3e8f53afd1a72b5c (patch) | |
tree | 63645c75c3ab6ea2b8052e32870a21a8194fda83 /servers/physics_2d_server.cpp | |
parent | 30a4882cf808f04a80bf0b6a3c879c8e9a74f673 (diff) | |
parent | c56c67db39b619d37c503e41e718f9cda39c3f0e (diff) |
Merge pull request #11702 from AndreaCatania/bodyDS
Added new API to get body direct state
Diffstat (limited to 'servers/physics_2d_server.cpp')
-rw-r--r-- | servers/physics_2d_server.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/physics_2d_server.cpp b/servers/physics_2d_server.cpp index b42b85b1be..671c31e6a3 100644 --- a/servers/physics_2d_server.cpp +++ b/servers/physics_2d_server.cpp @@ -579,6 +579,8 @@ void Physics2DServer::_bind_methods() { ClassDB::bind_method(D_METHOD("body_test_motion", "body", "from", "motion", "margin", "result"), &Physics2DServer::_body_test_motion, DEFVAL(0.08), DEFVAL(Variant())); + ClassDB::bind_method(D_METHOD("body_get_direct_state", "body"), &Physics2DServer::body_get_direct_state); + /* JOINT API */ ClassDB::bind_method(D_METHOD("joint_set_param", "joint", "param", "value"), &Physics2DServer::joint_set_param); |