summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorCamille Mohr-Daurat <pouleyKetchoup@gmail.com>2021-08-31 07:41:34 -0700
committerGitHub <noreply@github.com>2021-08-31 07:41:34 -0700
commita9fcbb100183dae5433ad7ab831fcc64545a05af (patch)
tree49365107124794563ae33018c3d0e3a766bb3b2e /scene
parent71dd26dd43cbe1fc988f260c85d2c320f8124e3c (diff)
parent3a323c4b974e248c25da1a760dec2a00da41a757 (diff)
Merge pull request #51364 from bengtsts/master
Expose soft body pin methods to GDScript
Diffstat (limited to 'scene')
-rw-r--r--scene/3d/soft_body_3d.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/3d/soft_body_3d.cpp b/scene/3d/soft_body_3d.cpp
index 28ff3e9412..7eb189e890 100644
--- a/scene/3d/soft_body_3d.cpp
+++ b/scene/3d/soft_body_3d.cpp
@@ -355,6 +355,11 @@ void SoftBody3D::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_drag_coefficient", "drag_coefficient"), &SoftBody3D::set_drag_coefficient);
ClassDB::bind_method(D_METHOD("get_drag_coefficient"), &SoftBody3D::get_drag_coefficient);
+ ClassDB::bind_method(D_METHOD("get_point_transform", "point_index"), &SoftBody3D::get_point_transform);
+
+ ClassDB::bind_method(D_METHOD("set_point_pinned", "point_index", "pinned", "attachment_path"), &SoftBody3D::pin_point, DEFVAL(NodePath()));
+ ClassDB::bind_method(D_METHOD("is_point_pinned", "point_index"), &SoftBody3D::is_point_pinned);
+
ClassDB::bind_method(D_METHOD("set_ray_pickable", "ray_pickable"), &SoftBody3D::set_ray_pickable);
ClassDB::bind_method(D_METHOD("is_ray_pickable"), &SoftBody3D::is_ray_pickable);