Prerequisites for using FreeMotionAnimationLoop and LDLConstraintSolver for animation #2731
-
Hi.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Hey @zbounik The FreeMotionAnimationLoop is used to be able to solve constraints (e.g. contacts, attachments formulated as constraints) using the method of the Lagrange Multipliers. The documentation of the method is here : https://www.sofa-framework.org/community/doc/simulation-principles/constraint/lagrange-constraint/ The FreeMotionAnimationLoop basically works in four steps: The fact that using the FreeMotionAnimationLoop your object is not moving is characteristic from a missing "ConstraintCorrection" (see documentation). |
Beta Was this translation helpful? Give feedback.
Hey @zbounik
The FreeMotionAnimationLoop is used to be able to solve constraints (e.g. contacts, attachments formulated as constraints) using the method of the Lagrange Multipliers. The documentation of the method is here : https://www.sofa-framework.org/community/doc/simulation-principles/constraint/lagrange-constraint/
The FreeMotionAnimationLoop basically works in four steps:
1 - free motion : physics is solved without considering any collision / contact / constraint
2 - collision detection (using the CollisionPipeline)
3 - constraint resolution : the ConstraintSolver builds and solves using a GaussSeidel the constraint problem
4 - constraint correction : correct the free motion with t…