Search Unity

Filtering

Discussion in 'Physics' started by SpindizzyGames, Oct 17, 2017.

  1. SpindizzyGames

    SpindizzyGames

    Joined:
    Jun 29, 2017
    Posts:
    108
    Is it possible to filter collisions by ID without incurring a call to OnTrigger/Collision?

    Like say:

    only objects with ID 1 collide with each other, ignore all other ids
    only objects with ID 2 collide with each other, ignore al other ids

    I know people are handling this inside of OnTrigger/Collision - I'm wondering if it's possible without the overhead incurred by the function call & any internal processing
     
  2. Plystire

    Plystire

    Joined:
    Oct 30, 2016
    Posts:
    142
    SpindizzyGames likes this.
  3. SpindizzyGames

    SpindizzyGames

    Joined:
    Jun 29, 2017
    Posts:
    108
    this forum appears to be broken. someone answered this a few days earlier but their answers are not showing here. I can see them if I click my Alerts. weird
     
  4. SpindizzyGames

    SpindizzyGames

    Joined:
    Jun 29, 2017
    Posts:
    108
    Ohh I see it now.. there is a double posting down the list.