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

Two colliders, 1 as a trigger

Discussion in 'Scripting' started by marevalo, Apr 21, 2014.

  1. marevalo

    marevalo

    Joined:
    Jan 7, 2014
    Posts:
    3
    Does anyone know if there are any problems in efficiency with using two colliders on one gameobject?

    One collider is used for the rigidbody and the other as a trigger.
     
  2. lordofduct

    lordofduct

    Joined:
    Oct 3, 2011
    Posts:
    8,377
    I have things set up that way in my games. Sure, it's less efficient in the sense you now have 2 colliders instead of 1... but if they're serving different purposes, well, that's that.
     
  3. marevalo

    marevalo

    Joined:
    Jan 7, 2014
    Posts:
    3
    But there isn't a huge performance decrease similar to say something like moving a static collider without a rigidbody?
     
  4. jerotas

    jerotas

    Joined:
    Sep 4, 2011
    Posts:
    5,555
    I don't believe so. That sounds like fairly standard practice to me.