basically I am trying to create an anchor to link my soft body and a rigid body.
The rigid body is using a motion state, to synchronize with the 3D object. This 3D object transformation matrix has a scale component, therefore the rigid body also has one.
It seems the anchor point is not attached where I would like it to be, it is actually much higher than both the rigid body and the soft body.
I have noticed the following code:
Code: Select all
Anchor a;
a.m_node = &m_nodes[node];
a.m_body = body;
a.m_local = body->getInterpolationWorldTransform().inverse()*a.m_node->m_x;
a.m_node->m_battach = 1;
m_anchors.push_back(a);
thanks !