1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Add functions to apply impulse and force to SoftBody on GodotPhysics and JoltPhysics

This commit is contained in:
PiCode
2025-05-13 23:49:28 +03:00
parent 209a446e36
commit fe3aaa2ae3
19 changed files with 303 additions and 0 deletions

View File

@@ -358,6 +358,11 @@ void PhysicsServer3DExtension::_bind_methods() {
GDVIRTUAL_BIND(_soft_body_pin_point, "body", "point_index", "pin");
GDVIRTUAL_BIND(_soft_body_is_point_pinned, "body", "point_index");
GDVIRTUAL_BIND(_soft_body_apply_point_impulse, "body", "point_index", "impulse");
GDVIRTUAL_BIND(_soft_body_apply_point_force, "body", "point_index", "force");
GDVIRTUAL_BIND(_soft_body_apply_central_impulse, "body", "impulse");
GDVIRTUAL_BIND(_soft_body_apply_central_force, "body", "force");
/* JOINT API */
GDVIRTUAL_BIND(_joint_create);