I found a strange behavior in the physics engine of 4.1 (not found in 3.5.x, i.e. in the Bullet engine) .
For example if we have 2 rigid bodies A and B in this configuration:
- A: collision layer = 1, collision mask = 1
- B: collision layer = 4, collision mask = 1
then when the two bodies come into contact the collisions are correctly detected but body A becomes static while B remains dynamic (correctly).
If, vice versa, the value 4 is also added to the body A's collision mask (i.e. collision mask = 1|4) then both bodies behave correctly in a dynamic way.
This seems like wrong behavior to me (as said in Bullet, the behavior of bodies is always dynamic).