diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-03-20 21:45:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-20 21:45:20 +0100 |
commit | fa681d04b7434c3db8c556d5fc046b702c731d98 (patch) | |
tree | a39079990bae6c4227cc16d90db274ffe1119c87 /servers/physics_server_3d.cpp | |
parent | 793000c6a90211a32b478fb550d82221e2817da0 (diff) | |
parent | d5ea4acd2dddfe13ad7989aa54d9cb5739e678d5 (diff) | |
download | redot-engine-fa681d04b7434c3db8c556d5fc046b702c731d98.tar.gz |
Merge pull request #46937 from nekomatata/soft-body-support
SoftBody support in GodotPhysics 3D
Diffstat (limited to 'servers/physics_server_3d.cpp')
-rw-r--r-- | servers/physics_server_3d.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/servers/physics_server_3d.cpp b/servers/physics_server_3d.cpp index af25029f04..586845de99 100644 --- a/servers/physics_server_3d.cpp +++ b/servers/physics_server_3d.cpp @@ -556,6 +556,10 @@ void PhysicsServer3D::_bind_methods() { ClassDB::bind_method(D_METHOD("body_get_direct_state", "body"), &PhysicsServer3D::body_get_direct_state); + /* SOFT BODY API */ + + ClassDB::bind_method(D_METHOD("soft_body_get_bounds", "body"), &PhysicsServer3D::soft_body_get_bounds); + /* JOINT API */ ClassDB::bind_method(D_METHOD("joint_create"), &PhysicsServer3D::joint_create); @@ -693,6 +697,7 @@ void PhysicsServer3D::_bind_methods() { BIND_ENUM_CONSTANT(SHAPE_CONVEX_POLYGON); BIND_ENUM_CONSTANT(SHAPE_CONCAVE_POLYGON); BIND_ENUM_CONSTANT(SHAPE_HEIGHTMAP); + BIND_ENUM_CONSTANT(SHAPE_SOFT_BODY); BIND_ENUM_CONSTANT(SHAPE_CUSTOM); BIND_ENUM_CONSTANT(AREA_PARAM_GRAVITY); |