Collision Group Managers
The collision group manager components are used in a collision pipeline.
The role of a collision group manager is to find and merge solvers for a contact, i.e. two different objects in collision, into groups. The term ‘group’ refers to a group of integration components. It includes an ODE solver, its associated linear solver and the constraint solver. DefaultCollisionGroupManager modifies the scene graph so that two objects in contact share the same node with a single integration algorithm. In that case, the integration algorithm solves the ODE of the two objects simultaneously.
In DefaultPipeline, groups are created only for contacts between two non-static objects.
After creating the groups, DefaultCollisionGroupManager is also in charge to create the contact responses.
Merging Two Integration Nodes
It is possible that two objects in contact are not solved with the same type of solver. For example, objectA can be solved with EulerImplicitSolver, and objectB with EulerExplicitSolver. In that case, some rules are pre-defined to select which one is kept. The other one is removed. Usually, the more stable or precise solver is preferred. For example, EulerImplicitSolver, is preferred over EulerExplicitSolver.
In case both ODE solvers are of the same type, but still a different instance, pre-defined rules merge Data values of both ODE solvers.
Similar rules also exist for the linear solvers. For example, if two conjugate gradient solvers are merged, the maximum number of iterations will be the highest value of both solvers.
Similarly, pre-defined rules merge Data values of two constraint solvers (only LCPConstraintSolver).
Interaction with Other Components
A collision group manager is optional in a simulation scene. A collision pipeline uses it if one is defined in the scene. It is usually a good practice to place the group manager near the collision pipeline, at the same level (not in a child node).
The following function must be called in the collision pipeline, once contacts have been detected:
Contacts are provided through the contact manager:
Examples of Components
The following components are collision group managers, and can be placed in a simulation scene:
- DefaultCollisionGroupManager (plugin SofaMiscCollision)
Read more on SOFA API documentation
Last modified: 28 September 2022