Hey guys, I am trying to call a function when Object A hits Object B. But OnColliionEnter does not work while OnControllerColliderHit works. I am slowly going nuts, because I have tried everything. Made thee OnCollisionEnter public and private. Doesn’t work. I need to use the OnCollisionEnter method, because I am trying to substract a Healthpoint everytime an Enemy hits the Player. I also tried adding other colliders to my Gameobjects, doesn’t work. Tried different tags, doesn’t work. I’d be very happy if someone could tell me what I am doing wrong
Make sure you have colliders on both objects (they can’t be ticked as triggers). One of those objects needs to have a rigid body. That basic setup will always call OnCollisionEnter.