Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Colliders get both Trigger and Collision events?

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

  1. GainfulSage

    GainfulSage

    Joined:
    Apr 30, 2015
    Posts:
    106
    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...?