We expect to have trigger working when two colliders overlap when we use functions like OntriggerEnter2D or OntriggerStay2D, but in many cases it just don’t work.
That’s why many people will use raycast2D to detect collision in many cases.
Will Unity fix 2D triggers collisions detection to have them working in all cases ?
They work fine for me. If you are having trouble, it is usually resulting from user error or setting up your physics incorrectly, or import settings etc.
Trying another configuration i find same problem with the character beeing able to stop falling , if i move the character very slowly on the edge of the floor rock.
This is more a collision 2D physics behaviour issue.
I got collision detected as intended, the issue is just in some rare case if i push with a very little force the player on some edge , some rare tims i can make it stay in the air like the pictures above.
I think i will do some three raycasts on the player foots to detect the floor : left, right , center
If the center raycast don’t collide, then i will add a subtile small force to the right or left depending on what other raycast is hitting the floor.