diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-02-09 16:05:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-09 16:05:19 +0100 |
commit | d617df5f3460a2bb55ce41497fdc24a885bf746c (patch) | |
tree | fb27a75bfbae61b60acc6a875b5aeb1cd2567180 /modules/bullet | |
parent | cedf9f68b16d0c650356d001de8e755b2eabfd3b (diff) | |
parent | ca7ee56759b385f32ff46342f85fa249e250ca40 (diff) |
Merge pull request #36048 from AndreaCatania/SoftBodyStiff
Make softbody completelly stiff to attachment point
Diffstat (limited to 'modules/bullet')
-rw-r--r-- | modules/bullet/soft_body_bullet.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/bullet/soft_body_bullet.cpp b/modules/bullet/soft_body_bullet.cpp index f4c0ffa6eb..a7988279c0 100644 --- a/modules/bullet/soft_body_bullet.cpp +++ b/modules/bullet/soft_body_bullet.cpp @@ -168,6 +168,7 @@ void SoftBodyBullet::set_node_position(int p_node_index, const Vector3 &p_global void SoftBodyBullet::set_node_position(int p_node_index, const btVector3 &p_global_position) { if (bt_soft_body) { + bt_soft_body->m_nodes[p_node_index].m_q = bt_soft_body->m_nodes[p_node_index].m_x; bt_soft_body->m_nodes[p_node_index].m_x = p_global_position; } } |