Search Unity

  1. Unity 2019.4 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  3. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Colliders get both Trigger and Collision events?

Discussion in 'Physics' started by GainfulSage, Sep 20, 2019.

  1. GainfulSage


    Apr 30, 2015
    I have a bunch of spaceships with colliders for the shields. I'd like to reuse the same collider to both manage physics collisions (between the ships) and trigger collisions (for the lasers). If I set the lasers to physics collisions they interact with the ship when it fires. If I set the ship and lasers to different layers, I have a layer combinatorial explosion problem.

    Is there an easy way to set this up I'm missing? Or should I just duplicate the collider on each shield, one trigger and one not...?