I am creating a basic 2D jumping/flying side scroller thing which has objects moving through the air and get destroyed by a collider behind the player, the problem begins when I have the flight part since the colliders at the roof of the game are meant to keep the players inside yet they also destroy the objects before they enter which is not what I want. Any Ideas would be appreciated!
Thanks
@CakeTinn
Edit > Project Settings > Physics 2D > Layer Collision Matrix
there you can check off layers you don’t want to collide with each-other.
So change the “roof” Layer to a different one that collides with player only and make another layer for the objects that ignores the objects moving through the air.
What you want is to set up the Physics collision Matrix. Take a look at this link:
Yes, you can put them on different layers and use the collision matrix in the project settings.
To all who answered me I really appreciate it!