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

How can I detect collisions?

Discussion in '2D' started by roan05112008, Sep 6, 2019.

  1. roan05112008

    roan05112008

    Joined:
    Sep 5, 2019
    Posts:
    17
    Hello! Can smobody tell me how can I detect collisions?
     
  2. Cornysam

    Cornysam

    Joined:
    Feb 8, 2018
    Posts:
    1,343
    google
     
  3. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,507
    roan05112008 and Helladah like this.
  4. Helladah

    Helladah

    Joined:
    May 5, 2018
    Posts:
    254
    roses are red
    purple its purple
    an sprites collides
    with a proper collider


    ------------

    Helladah , of the illiada

    --------

    or maybe you could a function called OnTrigerredEnter2d



    i didnt see, but it will fit… i guess
     
  5. roan05112008

    roan05112008

    Joined:
    Sep 5, 2019
    Posts:
    17
    Last edited: Sep 7, 2019
    Helladah likes this.