Question on constraint forces (lambda) #2871
-
Hi everyone, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @nhnhan92 indeed in the GenericConstraintSolver, you have two data: When you are running a simulation with collision using a DefaultContactManager with These forces will be used to compute a corrective motion of the free motion. Hugo |
Beta Was this translation helpful? Give feedback.
Hi @nhnhan92
indeed in the GenericConstraintSolver, you have two data:
computeConstraintForces
andconstraintForces
which are respectively a boolean to activate the computation of the constraint forces and the vector of constraint forces.When you are running a simulation with collision using a DefaultContactManager with
response="FrictionContactConstraint"
, a ConstraintSolver and a FreeMotionAnimation, the forces stored in theconstraintForces
data result from the constraint resolution. They correspond to the forces allowing to respect the given constraints at the current time step.These forces will be used to compute a corrective motion of the free motion.
I hope this helps.
Best,
Hugo