Search Issue Tracker
Duplicate
Votes
0
Found in
2019.4
2019.4.0f1
2020.2
Issue ID
1262789
Regression
No
Collision geometry is not applied correctly to a Tilemap when Composite Collider's 2D "Geometry Type" is set to Polygons
How to reproduce:
1. Open the user's attached "TilemapCollisionBug.zip" project
2. Open the "SampleScene" Scene (Assets folder)
3. Make sure the Scene view is visible
4. Expand the "Grid" GameObject in the Hierarchy window
5. Select the "Tilemap (2)" GameObject in the Hierarchy window
6. Observe the Scene view
Expected result: Correct collision geometry is applied to the Tilemap, no tiles are left without a collider and there are no holes in the collider
Actual result: Two colliders appear on the Tilemap, as the Tilemap gets wider the collider gets more inconsistent leaving the lower part of the Tilemap without a collider and
eventually leaving a hole in the center of the Tilemap
Reproducible with: 2019.4.5f1, 2020.1.0b16, 2020.2.0a18
Could not test with: 2018.4.25f1 (When downgraded, it can be seen that the geometry collision is applied correctly, but after unchecking "Used By Composite" and then checking it again, no geometry collision is applied at all)
Notes:
- The issue is not reproducible if the Composite Collider's 2D "Geometry Type" property is set to Outlines
- The issue is not reproducible if the Tilemap Collider's 2D "Used By Composite" property is unchecked
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
This is a duplicate of issue #1274172