Search Issue Tracker
Won't Fix
Won't Fix in 2023.1.X
Votes
0
Found in
2020.3.36f1
2021.3.4f1
2022.1.5f1
2022.2.0a17
2023.1.0a1
Issue ID
UUM-5510
Regression
Yes
NavMesh.Raycast doesn't return correct hit position
Steps to reproduce:
1. Open the user attached "NavMeshCastTest03.zip" project
2. Open SampleScene
3. Watch the Gizmo in the Scene Window that represents the NavMeshHit position
Reproducible with: 2020.2.7f1, 2020.3.0f1, 2020.3.36f1, 2021.3.4f1, 2022.1.5f1, 2022.2.0a17
Not reproducible with: 2019.4.40f1, 2020.2.6f1
Expected result: The Raycast returns false as there are no obstacles in the NavMesh
Actual result: The Raycast returns true with no obstacles in the NavMesh
Note: The NavMesh.Raycast is returning an incorrect hit. This appears to be related to some edge cases where the Raycast meets with problematic polygons
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
The workaround provided to the customer fixed the issue:
Adding an offset to the NavMeshSurface, so that the tile-grid is not constantly aligned with the 2d walkable area. Moving the local transform of the object holding the NavMeshSurface can help creating the offset without having to move other objects in the environment.
Resolution Note (2023.1.X):
The workaround provided to the customer fixed the issue:
Adding an offset to the NavMeshSurface, so that the tile-grid is not constantly aligned with the 2d walkable area. Moving the local transform of the object holding the NavMeshSurface can help creating the offset without having to move other objects in the environment.