Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Upgraded to the newest version, have problems with collision...

Discussion in '2D' started by Rutenis, Nov 23, 2014.

  1. Rutenis

    Rutenis

    Joined:
    Aug 7, 2013
    Posts:
    297
    Hey, so yesterday i upgraded. It is driving me crazy, whenever my bullet collides with the enemy, its not working properly. Any ideas whats going on?
     
  2. Wrymnn

    Wrymnn

    Joined:
    Sep 24, 2014
    Posts:
    352
    Check whether you are doing:

    void OnCollisionEnter2D(Collision2D col)

    or

    void OnTriggerEnter2D(Collider2D col)


    Or try both and see if it works.
     
  3. Rutenis

    Rutenis

    Joined:
    Aug 7, 2013
    Posts:
    297
    I did use 2d functions, dont worry. Meh, anyway, i got the later version and it fixed it. I guess thanks anyway for trying to help.