Raycast(Physics2D) won't hit an Edge Collider unless I remove the attached Rigidbody2D
I recently updated from unity 5.6.0 to 5.6.1 and I have a feeling that's where the problem is located.
I have a couple of simple floating platforms using an edge collider. Unity takes care of all the collisions, but I use Raycasts from both bottom corners to check if the player is grounded. This works perfectly fine on every single level. However, on one of the levels I attached a Rigidbody2D to some of the floating platforms to make them move, fall or what not.
After upgrading to Unity 5.6.1, the Raycasts won't hit those colliders, unless I remove the Rigidbody2D component from the platforms. I did a quick test and this does not happen if I use a BoxCollider2D. Sadly, converting from Edge to Box colliders will break some of the features in my game.
I even tried to create a new empty object where I attached a Rigidbody2D, and placed the platform with a collider as a child, this did not work.
I'm wondering, is this an intended Unity function, or is this a bug?
Anyone know of some kind of work around?
Your answer
Follow this Question
Related Questions
Circle Collider 2d is slipping off box colider2d when it shouldnt 1 Answer
Why Object2D jump out collision? 1 Answer
How To Decide To Damage Between Colliding Cars 4 Answers
How to stop game object movement instantly after collision is detected ? 1 Answer
LERPing Rigidbody2D still passing through collider 0 Answers