I’m working on a game in which you damage enemies by flying through them. Naturally, I don’t want the enemies to collide with you, so I have them set as triggers. It works perfectly.
This works great, except I want to have environmental effects (i.e. a slow-mo grenade), and the easiest way I can think of doing this is with a trigger collider. This works for the player, but it would not be triggered on the enemies (both would have trigger colliders). How can I make the enemies interact with the slowdown effect?
I suppose a workaround would be to add a child component to the enemy, have it set to not interact with the player layer, and give it a non-trigger collider, but that seems like a non-ideal solution. I’ve also considered using an overlap capsule, but it seems inefficient to have it run over and over (not to mention the OnTriggerExit equivalent would be more of a pain).