MultiStepAnimationLoop
This component belongs to the category of AnimationLoop.
The MultiStepAnimationLoop derives from the DefaultAnimationLoop. This animation loop is different due to the fact that it allows – at each iteration – for running several collision (collisionSteps), and within each of these collision steps, several integration sub-steps can be computes (integrationSteps).
Data
The MultiStepAnimationLoop has the following data:
- collisionSteps: the number of collision steps computed within one time step
- integrationSteps: the number of time integration (time sub-steps involving the physics resolution) computed within one time step
- computeBoundingBox: a boolean defining whether the global bounding box of the scene is computed at each time step. Used mostly for rendering.
Usage
The MultiStepAnimationLoop has no pre-requisite.
Note that this MultiStepAnimationLoop does not handle constraints solved using Lagrange multipliers.
Example
This component is used as follows in XML format:
<MultiStepAnimationLoop collisionSteps="10" integrationSteps="2" />
or using SofaPython3:
'MultiStepAnimationLoop', collisionSteps='10', integrationSteps='2') node.addObject(
An example scene involving a MultiStepAnimationLoop is available in examples/Components/animationloop/MultiStepAnimationLoop.scn
Last modified: 26 October 2023