Hello guys, i need simple explanation about how collisions work cause i dont get it properly probably.
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
trap collision is created by script
- This script creates a collision which follows animation bone
Somebody, any advice on this?
I also played around with rigidbodies but didnt get the result I want.