I am trying to get Trigger Layer to work but the sample project here by yaustar doesnt seem to work properly.
The issue I am having is that the Trigger Layer seems to “trigger” regardless of which layer it is set to activate for. For example, in the sample project, if you set the “Orange Trigger” to only trigger for “Group A” and “Group C”, it will still trigger for all A/B/C groups and the console log still shows “Box Red” “Box Blue” “Box Yellow” despite “Box Red” being set to “Group B” “Mask B” only.
Rigidbody collisions seems to work fine, Triggers are the only thing that seems to be the problem. I’ve done further experiments to see why this happens and all I figured out was that, if the rigidbody that the trigger is colliding with has a “pc.BODYGROUP_TRIGGER” flag, it will call the triggerenter regardless, and if it doesnt, it won’t seem to call the triggerenter even if the other groupmasks match.
Can someone help me on how to properly fix this so that, the “Orange Trigger” only runs the triggerenter code when it collides with the correct group? I rather not have to resort to something like entity name or tag string compares.