summaryrefslogtreecommitdiff
path: root/modules/bullet
diff options
context:
space:
mode:
authorAndrea Catania <info@andreacatania.com>2018-08-30 17:45:27 +0200
committerAndrea Catania <info@andreacatania.com>2020-02-09 10:18:11 +0100
commitca7ee56759b385f32ff46342f85fa249e250ca40 (patch)
tree1e2b59703bc670afc4efec9e90b7b368accfdf52 /modules/bullet
parentde932a528512a6312e08ba6926b658a577168f9d (diff)
Make softbody completelly stiff to attachment point
Diffstat (limited to 'modules/bullet')
-rw-r--r--modules/bullet/soft_body_bullet.cpp1
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;
}
}