add support for more than one constraint for a single deformable node

This commit is contained in:
Xuchen Han
2019-07-11 10:14:58 -07:00
parent b7e512a5f9
commit b28f1fdac3
4 changed files with 96 additions and 9 deletions

View File

@@ -23,6 +23,8 @@ public:
std::unordered_map<btSoftBody::Node *, size_t> m_indices;
TVArrayStack m_constrainedDirections;
TArrayStack m_constrainedValues;
btAlignedObjectArray<int> m_constrainedId;
const btScalar& m_dt;
btCGProjection(btAlignedObjectArray<btSoftBody *>& softBodies, const btScalar& dt)
@@ -56,6 +58,7 @@ public:
m_constrainedDirections[i].clear();
m_constrainedValues[i].clear();
}
m_constrainedId.clear();
}
void updateId()