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.

Unity 3.2 - Physics.IgnoreCollision Broken?

Discussion in 'Scripting' started by wbokunic, Feb 11, 2011.

  1. wbokunic

    wbokunic

    Joined:
    Dec 17, 2009
    Posts:
    43
    So before I updated, I was using this code:

    Code (csharp):
    1.  
    2. function Start(){
    3.     var Player = GameObject.FindWithTag ("Player");
    4.     if(Player){
    5.         Physics.IgnoreCollision(Player.collider, collider);
    6.     }
    7. }
    8.  
    It worked perfectly and would allow the player to walk through this object whilst still being affected by the surrounding environment. But ever since the update yesterday this hasn't been working at all. Is Physics.IgnoreCollision broken?
     
  2. DanielQuick

    DanielQuick

    Joined:
    Dec 31, 2010
    Posts:
    3,137
    I'm using it right now, and its working as it should. No idea why your code doesn't work.