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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How to Make isTrigger Collider Collide With Objects?

Discussion in 'Physics' started by Wilelle, Jun 21, 2015.

  1. Wilelle

    Wilelle

    Joined:
    Jun 16, 2015
    Posts:
    93
    I have an enemy whose collider is a trigger, but I still need it to collide with objects. I tried adding another collider that isn't a trigger, but that causes it to bug out. I'm not entirely sure why, but it starts shaking, moving around and spinning. I believe it's because there are objects and scripts on the enemy that requires it to not have anything to collide with. So I need a way to make it collide with other things despite only having a trigger collider. Is there a way to do this? Or at least only make it collide with certain objects?
     
  2. dylanjosh

    dylanjosh

    Joined:
    Jun 1, 2015
    Posts:
    10
  3. Wilelle

    Wilelle

    Joined:
    Jun 16, 2015
    Posts:
    93
    Yes, I've tried attaching an object to the enemy with a layer that only collides with the layers I want it to collide with. But for whatever reason, it still bugs out. If I knew why this would probably be easy, but I don't know what's causing it. Whenever it collides with the layer I've set it to collide to, it begins.