Search Unity

Feedback OnCollisionEnter is not working :(

Discussion in '2D' started by asedihs, Apr 6, 2019.

  1. asedihs

    asedihs

    Joined:
    Dec 8, 2018
    Posts:
    1
    Hello, guys!

    I am making a top down shooter, however met the problem where OnCollisionEnter method is not working. The thing is that collisions themself are working properly and as expected. I have the character who is firing bullets and those bullets are having both rigidbody and circle collider, I want to have the bullets to destroy once collision happened with something (as walls, enemies), however collision is not triggered. Video attached.


    In addition would like to tell that none of OnCollisionEnter methods is not working. Tried with combination player-enemy, wall-player, enemy-wall. None of those are working.

    HUGE THANKS IN ADVANCE FOR HELPING OUT!
     
  2. Rockaso

    Rockaso

    Joined:
    Oct 31, 2016
    Posts:
    85