Is there a way to create multiple colliders that only apply to certain respective tags?

For instance, I’d like one player collider to only interact with walls, and another player collider to interactive with enemies and other players.

Anyway to either ignore all or ignore selectively?

Hi,

May this be what you are looking for?

See I already looked into this, and this won’t work.

My specific situation - my player has one collider for movement and another to act as a hitbox for enemies. The hitbox is much larger than the movement collider, which only covers the legs (that way it can overlap sprites above the legs).

So what I need is to figure out how to have each collider apply to either only specific layers or tags only.

On the contrary, this sounds like exactly what you need.

  • Separate your colliders on child GameObjects of the player object.
  • Set the layer of the child object containing the movement collider to a layer that only interacts with terrain.
  • Set the layer of the child object containing the hitbox collider to a layer that only interacts with enemies.

THAT IS VERY SMART!

I will be trying this. Thank you!