summaryrefslogtreecommitdiff
path: root/servers/physics_server.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-02-19 20:22:18 +0100
committerGitHub <noreply@github.com>2018-02-19 20:22:18 +0100
commitbe67f2e4ba1bc2d36a9705328cf0b87aada9c3d7 (patch)
tree04c428098201e3baa8555f0733d43ce8ad90f0c1 /servers/physics_server.cpp
parent6d99975707e51b5925c847fac4e88a55d5981408 (diff)
parenta930797c31d4ee1a00e03cfc1055fd4cb8af9a14 (diff)
Merge pull request #16751 from AndreaCatania/moreAPIs
Added Physics state APIs
Diffstat (limited to 'servers/physics_server.cpp')
-rw-r--r--servers/physics_server.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/physics_server.cpp b/servers/physics_server.cpp
index 9d4807fcf0..db5e14043c 100644
--- a/servers/physics_server.cpp
+++ b/servers/physics_server.cpp
@@ -92,7 +92,9 @@ void PhysicsDirectBodyState::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_transform", "transform"), &PhysicsDirectBodyState::set_transform);
ClassDB::bind_method(D_METHOD("get_transform"), &PhysicsDirectBodyState::get_transform);
+ ClassDB::bind_method(D_METHOD("add_central_force", "force"), &PhysicsDirectBodyState::add_central_force);
ClassDB::bind_method(D_METHOD("add_force", "force", "position"), &PhysicsDirectBodyState::add_force);
+ ClassDB::bind_method(D_METHOD("add_torque", "torque"), &PhysicsDirectBodyState::add_torque);
ClassDB::bind_method(D_METHOD("apply_impulse", "position", "j"), &PhysicsDirectBodyState::apply_impulse);
ClassDB::bind_method(D_METHOD("apply_torqe_impulse", "j"), &PhysicsDirectBodyState::apply_torque_impulse);