Skip to content

Question on constraint forces (lambda) #2871

Discussion options

You must be logged in to vote

Hi @nhnhan92

indeed in the GenericConstraintSolver, you have two data: computeConstraintForces and constraintForces 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 the constraintForces 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

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@nhnhan92
Comment options

@hugtalbot
Comment options

@nhnhan92
Comment options

Answer selected by hugtalbot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants