Forum Replies Created
-
AuthorPosts
-
GuebertBlocked
Hello,
The problem you describe is simple enough that you do not need a RuleBasedContactManager.
A collision occurs between two objects when they do not have any collision group in common. So we can set the objects as follow:
A: group=”1″, B: group=”1″, C: group=”2″
A and B are in the same group, they will not interact, but C is in another and will interact with both of them.Now for an explanation of the RuleBasedContactManager in case you ever need it.
This component allows to choose the collision response for each possible collision in your simulation. Let us reuse your example with the 3 objects, and set their group as A=1, B=2, C=3.
In the RuleBasedContactManager we now have to define rules that will set the collision response for a contact based on the collision groups of the objects that interact. A rule is defined as follows: “group1 group2 response”. It is possible to use wildcards (*) to match all groups, and we can set the response params after the character ‘?’. The rules are tested in the order they are written, the first that matches the groups is chosen. An example:
<RuleBasedContactManager rules="1 2 null 1 3 FrictionContact 3 * FrictionContact?mu=0.1" />
There we have said that collisions between A and B are deactivated, we ask for a contact with friction between A and C, and all other contacts with C will have a lower friction coefficient.Best regards,
Christophe Guébert
Digital TrainersGuebertBlockedHello Thien,
I just did some tests to understand your problem, but cannot reproduce it.
It is my understanding that the use of the FixedConstraint does not depend on the use of a LCP constraint solver, as it is indeed a projection constraint. It should also not be affected by the contact response you choose.Is it possible that a contact occurs between a fixed point and another object in your simulation ?
—
Christophe Guébert
Digital-Trainers -
AuthorPosts