Collision groups

Here is what I would like to do. I would like objects to react to a certain object, but that object not be affect by the others.

Essentially this
Obj1
collisionGroup = group2;
collidesWith = group2;

Obj2
collisionGroup = group1;
collidesWith = group1 & group2;

So that if the two ran into each other, obj2 would bounce off of obj1, but obj2 would act as if nothing hit him.

However, the way collision filtering works, both objects have to be in the group of the others collidesWith.
You are asking for a unilateral collision. In the current model, both bodies are affected. Of course, static bodies do not move. This effect has nothing to do with filtering and is currently not supported. This behavior has some problems because you are able to push bodies through other bodies.

Please give some more detail about what you would like to do to help people find a solution for you.
Could you set something to have a nearly infinite mass? This may generate infinite values for forces/impulses when it touches static objects though.

Would be nice to have an elegant solution for this though.

Original thread: https://box2d.org/forum/viewtopic.php?t=3455