Search Issue Tracker
Fixed in 2022.1.X
Votes
1
Found in
2019.3.0f5
2019.4.4f1
2020.1.0a19
2020.2
Issue ID
1263649
Regression
Yes
Physics.OverlapCapsule doesn't detect Terrain Collider when Terrain Heightmap Resolution is 513x513 (or lower)
To reproduce:
1. Open attached project ("case_1263649.zip")
2. Enter Play mode
3. In the Game view window click "Check Collisions" button
4. Observe the results
Expected result: "Detected 1 collisions" is printed in the Game view
Actual result: "Detected 0 collisions" is printed in the Game view
Reproducible in: 2019.3.0f5, 2019.4.5f1, 2020.1.0a19, 2020.1.0f1, 2020.2.0a18
Not reproducible in: 2018.4.25f1, 2019.3.0f4, 2020.1.0a1, 2020.1.0a18
Note: Collisions are being detected in some cases (can be observed by clicking "Set Positions for 1 collision" button before step 3)
-
kobyfr
Oct 28, 2022 15:25
well, that did not get solved... and anyway, my heightmap resolution is 4096x4096.
terrain collision with small objects still goes undetected, in 2022.1.21f1. -
kobyfr
Oct 28, 2022 15:02
thanks for fixing this... I did not understand why after applying a height map to my terrain, it no longer generates collision events for small objects.
-
LeonardoMello
Feb 19, 2021 00:17
I noticed this same flaw in a collision test on my Player, where the OverlapCapsule is used to check if it is on the ground. The amount of collisions hovers from 0 to 1 as it moves, causing the player's jumping system to fail. This failure stops when the player is on top of objects other than the terrain. I increased the heightmap resolution to 1025 x 1025, and the failure ceased. In fact, there is still an oscillation, but it is almost imperceptible.
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
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a2