From c56c67db39b619d37c503e41e718f9cda39c3f0e Mon Sep 17 00:00:00 2001 From: AndreaCatania Date: Fri, 29 Sep 2017 17:33:30 +0200 Subject: Added new API to get body direct state --- servers/physics_2d_server.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'servers/physics_2d_server.cpp') 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); -- cgit v1.2.3