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)

Physics

-

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)

  1. Response avatar

    Resolution Note (fix version 2022.1):

    Fixed in: 2022.1.0a2

Comments (1)

  1. 016363310ae4a3d224a76fe2e0c9638b?d=mm

    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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.