Search Issue Tracker
Third Party Issue
Votes
0
Found in
2019.4
2020.3
2021.1
2021.1.17f1
2021.2
2022.1
Issue ID
1372649
Regression
No
Linecast misses MeshCollider when casting a ray from certain positions
How to reproduce:
1. Open the user-submitted project
2. Open the Scene "Bugs" (Assets/Scenes/Bugs.unity)
3. In the Hierarchy window, select the GameObject "BugTest"
4. In the Inspector window, open the "Bugs Component" Script's context menu and select "Raycast"
5. In the Scene view, observe the Line Gizmo coming from the "BugTest" GameObject
Expected result: The Line Gizmo ends at the wall
Actual result: The Line Gizmo goes through the wall
Reproducible with: 2019.4.31f1, 2020.3.20f1, 2021.1.24f1, 2021.2.0b16, 2022.1.0a12
Comments (1)
-
mgear
Oct 12, 2023 12:19
got extra info:
"If this is due to a limitation of BVH34 then this will never be "fixed". However there is an error report when the build fails and in that case you can silently fallback to BVH33.That limitation is due to a limited number of bits in the BVH nodes to encode indices, so this can happen on large meshes. Past PhysX versions didn't report an error in that case (we weren't aware of it) so it could be difficult to detect. More recent builds report the error."
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
- SearchColumn of type "ObjectReference" does not get refreshed for the custom SearchProvider when lighting generation finishes
- LogWarning is not executed in the HDRP package script when running the project in -batchmode
- Freeze on DynamicHeapAllocator::InitializeMemoryRegion when entering Play mode in a specific scene
- Memory usage rises when switching scenes with GRD enabled and a loaded texture in URP
- [Quality Hackweek] Terrain Brush Size value is not serialized after deselecting the terrain when using the first instance of multiple Inspectors
Resolution Note:
The issue stems from the PhysX baking process. To workaround the bug disable "Use fast midphase" in the Mesh Collider cooking options.