Question by
thefrostage · Oct 26, 2018 at 10:33 AM ·
colliderscollision detectioncollider2dborders
How do I make "selective" borders?
I basically need objects that will collide with the player but won't collide with other objects(prefabs).
I have a 2d player moving left or right on the bottom of the screen and rocks flying at him from the top. I need to create borders on the left and on the right but the idea is that they will stop player from moving out of camera sight but at the same time they won't stop these rocks from flying away. How do I make that?
Comment