Question by
Lucasr07 · Jan 24, 2021 at 04:25 PM ·
physics2dcollider2dlayermaskignorecollision
It is possible to filter and ignore collisions by a Layermask?
My question is simple. Is there any way I can, using a layermask, define which physics layers this object can collide with.
I'm not considering using Physics.IgnoreLayerCollision because I would like to define the collisions individually for each object, thus using a smaller number of Physics Layers and making this filter by Layermask.
thank you so much who has any suggestion ;)
Comment
Your answer
Follow this Question
Related Questions
How to create 2D terrain procedurally with 2D physics colliders ? 0 Answers
Cannot create a 2D collider array 4 Answers
Using a different physic material on a single object depending on the object colliding with it? 0 Answers
OnCollisionExit2D no longer gives contact information 0 Answers
how to make force inversely proportional to the distance 0 Answers