Search Issue Tracker
Fixed in 4.5.2
Box Collider 2D does not collide when its size is small (like 0.01)
Unity Version 4.5.0f6 (fd4616464986)
4.5 includes the latest Box2D which fixes a number of issues, one of which is correctly handling colliders (fixtures) that are too small. When Box2D encounters a collider that is too small it simply throws an assert. To counter this we perform the exact same checks that Box2D does including checking for vertex being too close, colinearity, and area being too small.
If any of these checks fail we simply don't create the Box2D collider. We don't push this as a warning to the console as this would cause a lot of spam to be generated. You will notice that the gizmo doesn't render in this case.
Upon further consideration, we feel that simply not rendering the gizmo isn't adequate so in Unity 4.5.1 (patch 2) we are adding a warning on the collider indicating that it couldn't complete the request to Box2D.
In all cases where you previously were using polygon/box to produce very thin colliders, it is highly recommended that you use the edge collider instead.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
- VFX Graph not retaining reference to custom spawner
- [URP] Blend Style panel is translucent and appears to be of different colour
- ProjectFilesGenerator.ProjectFileGeneration event isn't raised
- [Asset Import] Errors thrown on creating a project using microgame templates
- A game object is instantiated in a translated transform position when it is instantiated as a child of a new parent object