diff options
| author | AndreaCatania | 2017-12-10 17:21:14 +0100 |
|---|---|---|
| committer | AndreaCatania | 2017-12-10 17:21:14 +0100 |
| commit | 5dee44bbc13605348b65bc74878a5a8be2b50cbd (patch) | |
| tree | 18015df53d04b296c58702d5375c5c43cf0eab27 /servers/physics_server.cpp | |
| parent | a5b3c9cae010c98ec692bc08463cde25f8f9ac67 (diff) | |
| download | godot-5dee44bbc13605348b65bc74878a5a8be2b50cbd.tar.gz godot-5dee44bbc13605348b65bc74878a5a8be2b50cbd.tar.zst godot-5dee44bbc13605348b65bc74878a5a8be2b50cbd.zip | |
Implemented physics linear and angular lock
Diffstat (limited to '')
| -rw-r--r-- | servers/physics_server.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/servers/physics_server.cpp b/servers/physics_server.cpp index 9a9b20bf2..2aef12f04 100644 --- a/servers/physics_server.cpp +++ b/servers/physics_server.cpp @@ -473,7 +473,7 @@ void PhysicsServer::_bind_methods() { ClassDB::bind_method(D_METHOD("body_set_axis_velocity", "body", "axis_velocity"), &PhysicsServer::body_set_axis_velocity); ClassDB::bind_method(D_METHOD("body_set_axis_lock", "body", "axis", "lock"), &PhysicsServer::body_set_axis_lock); - ClassDB::bind_method(D_METHOD("body_get_axis_lock", "body"), &PhysicsServer::body_get_axis_lock); + ClassDB::bind_method(D_METHOD("body_is_axis_locked", "body", "axis"), &PhysicsServer::body_is_axis_locked); ClassDB::bind_method(D_METHOD("body_add_collision_exception", "body", "excepted_body"), &PhysicsServer::body_add_collision_exception); ClassDB::bind_method(D_METHOD("body_remove_collision_exception", "body", "excepted_body"), &PhysicsServer::body_remove_collision_exception); @@ -702,6 +702,12 @@ void PhysicsServer::_bind_methods() { BIND_ENUM_CONSTANT(SPACE_PARAM_BODY_TIME_TO_SLEEP); BIND_ENUM_CONSTANT(SPACE_PARAM_BODY_ANGULAR_VELOCITY_DAMP_RATIO); BIND_ENUM_CONSTANT(SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS); + BIND_ENUM_CONSTANT(BODY_AXIS_LINEAR_X); + BIND_ENUM_CONSTANT(BODY_AXIS_LINEAR_Y); + BIND_ENUM_CONSTANT(BODY_AXIS_LINEAR_Z); + BIND_ENUM_CONSTANT(BODY_AXIS_ANGULAR_X); + BIND_ENUM_CONSTANT(BODY_AXIS_ANGULAR_Y); + BIND_ENUM_CONSTANT(BODY_AXIS_ANGULAR_Z); } PhysicsServer::PhysicsServer() { |
