I created object with collision (lets call it ‘enemy move controller’) for my enemy(AI), it makes my enemy controller smarter so he can detect a collisions in front of him, and therefore he knows when to stop or when to move.
Although, for some reason this collision attached on enemy cannot detect collisions of the traps, he though can detect my player controller collision. I was curious and i tried to ask the trap collision if he collides with the enemy move controller collision, output was true, so even my trap collision could detect the enemy move controller. When no rigidbody attached on enemy move ctrlr, it can detect player controllers collision and trap can detect enemy m. c., however enemy m. c. cannot see trap.
here is simple collision script which should detect any collision he enter, with output in console
Well so I dont understand, because i have it set up the same. My enemy move controller has kinematic rigidbody with event listener, and triggers with non rigidbody object using the collision, when enemy collides with trap, he dies and is being respawned, he as well has kinematic rigidbody so as my enemy move collider has, but for whatever reason its not detected
It seem that i fixed the problem, i had to add kinematic rigidbody with script as well on the trap object (where i create collision), but also change in both scripts to collisionstart, and now it detects the object. Thank you for you assistance!