i have a simple collider2d and it should return everything in specified box.
BoxOverlapHits = Physics2D.OverlapBoxAll(PosForMP, new Vector2(2, 2), 1f);
do i need 2 vector 2s for one corner and the other coorner? what am i doing wrong?
there is most certenly something at that area but the box doesnt see it help.
1 Answer
1You need to provide a little more information.
is the objects your trying to detect have colliders?
do they have rigid body’s?
are they set to trigger?
Check your layer collision matrix in the project settings are they set to not interact?
it has a box collider. no rigid body. not set to trigger. i havent done anything to the collision matrix so everything should interact.
– mevsvader