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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

OnCollisionEnter / Collider

Discussion in 'Editor & General Support' started by xxfelixlangerxx, Feb 21, 2019.

  1. xxfelixlangerxx

    xxfelixlangerxx

    Joined:
    Feb 6, 2019
    Posts:
    31
    Hey i need your help.
    I want to create coins witch are destroyed by using OnCollisionEnter but my Collider stops all of them movement how can i make the collider walktrough but still work with OnCollisionEnter?
     
  2. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,386
    Set the collider to "is trigger" and use OnTriggerEnter instead of OnCollisionEnter.
     
  3. xxfelixlangerxx

    xxfelixlangerxx

    Joined:
    Feb 6, 2019
    Posts:
    31