We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 742c678 commit 3125fc0Copy full SHA for 3125fc0
1 file changed
src/CollisionAlgorithm/algorithm/InsertionAlgorithm.cpp
@@ -180,12 +180,15 @@ InsertionAlgorithm::AlgorithmOutput InsertionAlgorithm::puncturePhase()
180
l_tipGeom->getContext()->get<MechStateTipType>();
181
const auto& lambda =
182
m_constraintSolver->getLambda()[mstate.get()].read()->getValue();
183
+ const auto dt = l_tipGeom->getContext()->getDt();
184
SReal norm{0_sreal};
185
186
for (const auto& l : lambda)
187
{
188
norm += l.norm();
189
}
190
+ // Convert impulse to force
191
+ norm /= dt;
192
193
if (norm > punctureForceThreshold)
194
0 commit comments