I'm using triggers a lot. But now suddenly I'm confused on how they actually work.
I'm in the understanding that when a rigidbody with collider enters another collider set to trigger, the onTriggerEnter method is called. This way I pick up my coins in my game using the TRIGGER EVENT action. The Player (with rigidbody and collider) hits the coin (with trigger collider).
I'm currently adding a magnet zone to my player to attract coins, this collider obviously can't be just a collider since it would disturb the player's movement, so I set it up as well as a trigger. Hence I now have two triggers interacting with each other, the magnet field and the coin.
According to the Collision action matrix from
https://docs.unity3d.com/Manual/CollidersOverview.html this should be working, but the problem is that now that the new trigger collider (the Magnet field) fires as well other onTriggerEnter events on other trigger colliders I have setup for example for ending the level or spawning particles etc.
Why is this happening? My Magnet has it's own tag "PlayerMagnet" while for example the level end trigger has a tag "LevelEnd". Nonetheless, the action TRIGGER EVENT is triggering the event no matter the specified tag.