From ca7ee56759b385f32ff46342f85fa249e250ca40 Mon Sep 17 00:00:00 2001 From: Andrea Catania Date: Thu, 30 Aug 2018 17:45:27 +0200 Subject: Make softbody completelly stiff to attachment point --- modules/bullet/soft_body_bullet.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/bullet') 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; } } -- cgit v1.2.3