Search Unity

Stop collision?

Discussion in 'Scripting' started by Team TSA, Jun 20, 2012.

  1. Team TSA

    Team TSA

    Joined:
    Oct 19, 2011
    Posts:
    164
    Dont allow to collide?

    Hey guys,

    I have my enemies chase my character when they see him, and what ends up happening is the enemies just run right off the edge of things. I was thinking to have some collider that everything but an object tagged "enemy" can pass through. So it stops the enemy from falling, but allows me to move forward.

    Thanks!
     
  2. Nasq

    Nasq

    Joined:
    Apr 26, 2012
    Posts:
    7
    Edit -> Project Settings -> Physics -> Layer Collision Matrix

    Set which layers can collide with each other.