Question by
brandonhendricks · Sep 06, 2021 at 10:48 PM ·
collisionenemycolliderscollision detectionenemy ai
Enemy AI script collisions not working,Enemy AI script collisions not working?
ive been trying to get my enemyAi script to destroy the target character(enemy) when it collides with the player and play a particle system, currently it seems like the collisions are not working and do no post the debug logs, there is a rigid body on both the player and the enemy, and the script is on the enemy, tags should also be correct.
[1]: /storage/temp/185896-code.png
, I've been having trouble with collisions working with my enemy Ai script, essentially what I want to happen is the object gets destroyed when colliding with the player, both have a rigid body, and the correct tag, i also added debug logs to see if it even rendered the collision but it seems they never activated either?
code.png
(26.0 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613042700im_/https://answers.unity.com/themes/thub/images/avi.jpg)