I am testing my project in Unity 6, and I’m having issues with the 2D physics. Tthe Player can crouch, while crouching his capsule collider gets smaller (so he can fit through holes, or avoid bullets). But since updating, when crouching he can sometimes go through walls or the floor. This never happened before.
Setting the “Contact Threshold” from “0.01” to “0.001” helped a bit, but setting it lower won’t help. He’s still going through some walls and floor. Other times he’s not…
I am using a SpriteShape as ground with a PolygonCollider2D.
Changing the Capsule Collider like this (nothing fancy):
Moving the player has a long and convoluted script, but in the end I’m simply setting his velocity (worked in earlier Unity 2D projects without making him fall through the floor):
It looks like he falls through the cracks (see the gif and also the image with the SpriteShape PolygonCollider2D visible). This can happen on any green line/polygon intersection, or whatever you call it, on the SpriteShape.
I apologise, there was a bug introduced in 6000.0.1 however it has been fixed and hoping it’ll land in 6000.0.2. I’ll report back here if it doesn’t in which case it’ll land in 6000.0.3.
For now, simply set the ContactThreshold to 0 to turn this feature off and it’ll fix the issue. You can restore it to its default of “0.01”.
I’m having similar issues with Physics 2D in Unity 6 where collision detection is not handled properly. I’m on 6000.0.4f1 and I am having these issues.
It doesn’t matter if the collision detection is Discrete or Continuous, Interpolated or Extrapolated. My Character will now pass through any collider if it is moving fast enough (on dashing for example)