Search Unity

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...?