I have a little problem with BoxCollider2D
. When I do this:
bool someBool = someBounds.Contains(somePoint);
I get expected result when the body has no rotation like on the picture 1. (red area is where somePoint makes someBool true) And when the body is rotated, somePoint makes someBool true everywhere inside the red area(picture 2). I don't want this kind of behaviour. I want point to return true inside the green area(picture 3).