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

Why do trigger colliders not cause physics

Discussion in 'Getting Started' started by Sunderer, Mar 16, 2015.

  1. Sunderer

    Sunderer

    Joined:
    Mar 16, 2015
    Posts:
    35
    Hi guys,

    Yes, a noob question, hopefully posted in a noob part of town:

    I am doing the 2nd Unity tutorial and was scratching my head why my laser shots where pushing my asteroid around the room. I realised I had not clicked IS TRIGGER on the laser prefab.

    Now that I have done that everything is fine. But I want to ask, what is the difference with making an object IS TRIGGER when it comes to collision events. are they just ignored now unless there is a script that does something once a collision is detected?

    Thanks
     
  2. Effervescent

    Effervescent

    Joined:
    Mar 7, 2015
    Posts:
    31
    When "Is Triggered" isn't enabled, that object is treated as a simple rigidbody collider (see this link). The Unity Scripting Reference is a magical source of information! xD
     
  3. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    The whole point of IsTrigger is to detect collision events without a collision actually occurring. Think laser beams and proximity sensors.
     
  4. Sunderer

    Sunderer

    Joined:
    Mar 16, 2015
    Posts:
    35
    Thank you both for you reply. And yes I do check the scripting reference, but sometimes its a little over my head, am still getting to grips with C sharp.