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

IsTrigger checked, but Collision still occurs

Discussion in 'Editor & General Support' started by Larpushka, Jul 26, 2020.

  1. Larpushka

    Larpushka

    Joined:
    Jan 6, 2015
    Posts:
    214
    For Unity 2020.1
    As title says,
    IsTrigger is checked, but I still get collision. Here is a video demonstrating it. Maybe I'm missing something...



    -Larpushka
     
  2. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,120
    What's controller your character's movement? Is it some kind of script that tests whether it can move to a certain place? Or are you just calling AddForce on the player's rigidbody to move them around? My assumption would be that you're doing something like raycasting or an overlap check to test whether you can keep moving, and those things can still hit trigger colliders.

    Try dropping a block onto the bug. Just a block that uses gravity, and has a non-kinematic rigidbody. I assume it'l go through the trigger collider just fine.
     
  3. Larpushka

    Larpushka

    Joined:
    Jan 6, 2015
    Posts:
    214
  4. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,120
    I'd look for anything that uses the Physics system. Either Physics.Raycast, Physics.Overlap, etc, but that's just a guess. I'm not familiar with that package. Or maybe the controller has some setting on it to ignore triggers?

    Seems that package has an active forum for it, though, so it might be best to ask there.