OnTrigger Problems Between Colliders Issue
So I've created a script that is effected by the trigger-able collision of another specific object that too has a script that checks for the right tag and that the other script is on the other object. But when its placed on my enemy it doesn't work, but once on the player it does. The tags are the same, so that's not the problem. Both objects (Player and Enemy) have a capsule collider, so there's no different's between the colliders. For some reason my enemy isn't effect by the collision trigger, but the player is. So i know there's nothing wrong with the script, because it does work but only on the player. Is there something I'm missing? The zombie in this case was imported, but i tried using a freshly created object and it too didn't interacted with the collision trigger.,
Answer by olivermgbruce2002 · Jul 11, 2020 at 10:32 AM
if anyone else is wondering how to fix this i found a solution. I simply gave my enemy a Rigidbody, which was the only thing my player had which the enemy didn't. After this was applied, the enemy was able to interacted with triggers. I don't completely understand why, so if anyone sees this and can elaborate that would be nice
Your answer
Follow this Question
Related Questions
ANIMATION TRIGGER DOESN'T PLAY 1 Answer
How do I create a script to reset a level when my Player comes into contact with an object? 1 Answer
Can a Trigger object utilize the OnTriggerEnter() Function? 2 Answers
OnTriggerEnter2D not working 1 Answer
Detect the objects staying on top of the Particles 0 Answers