diff options
author | Bengt Söderström <bengtsts@pm.me> | 2021-08-30 20:07:14 +0200 |
---|---|---|
committer | Bengt Söderström <bengtsts@pm.me> | 2021-08-30 20:07:14 +0200 |
commit | 08a80962cfe25ad2891da0d74083a4fedd694319 (patch) | |
tree | f0a80849bc96a7759b6e02547dad7079c0ad53b4 /scene | |
parent | 3c85ef14c33c54c8b880610dfab4479c668936a6 (diff) |
Expose soft body pin methods to GDScript
Diffstat (limited to 'scene')
-rw-r--r-- | scene/3d/soft_body_3d.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/3d/soft_body_3d.cpp b/scene/3d/soft_body_3d.cpp index a7ff0842d2..b368200971 100644 --- a/scene/3d/soft_body_3d.cpp +++ b/scene/3d/soft_body_3d.cpp @@ -361,6 +361,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); |