Search Issue Tracker
Active
Under Consideration for 2021.3.X, 2022.3.X, 6000.0.X
Votes
2
Found in
2020.3.41f1
2021.3.13f1
2022.1.22f1
2022.2.0b14
2023.1.0a18
2023.2.0a1
2023.3.0a3
6000.0.0b11
6000.1.0a7
7000.0.0a1
Issue ID
UUM-18593
Regression
No
Game Objects get stuck in an infinite loop when passing NavMesh surface nodes
Reproduction steps:
1. Open the user’s attached project
2. Enter the Play mode
3. Press the "LET’S FIGHT!" button
4. Click on “BASIC” button and click on the center of the map grid to place the "Basic Unit"
5. Press CTRL and Left Shift 2 times
Expected result: Units don’t get stuck
Actual result: Some units move back-and-forth around an intermediary position on their path (The console reports that units get stuck)
Reproducible with: 2020.3.41f1, 2021.3.13f1, 2022.1.22f1, 2022.2.0b14, 2023.1.0a18
Reproducible on: Windows 10
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
- Red spots appear when Blending Lighting Scenarios using Adaptive Probe Volumes
- [Windows] About Unity Window needs to be opened twice to adapt to resolution
- NullReferenceException and temporary graph corruption after entering playmode if output node connection was changed
- Sprite Renderer with Animation does not reflect Sprite changes in the Scene when switching Mask Interaction
- User is redirected to a non-existing online documentation link when clicking on "?" help button inside Inspector window while Animator Override Controller is selected
adriant
Dec 06, 2023 22:22
The NavMesh is split into tiles, which are displayed as a grid of white squares over the NavMesh.
The issue described here happens when the agent moves right on the edge between two NavMesh tiles, or when it crosses a corner shared by multiple tiles.
As a workaround, any measure that you take to make the agent not move precisely along the tile edge, or precisely through a tile corner, can help reduce the risk of encountering this issue. In some situations it helps if you move the NavMesh Surface object away from the world origin, and maybe rotate it slightly around the vertical axis before you build the NavMesh. This breaks the alignment between the NavMesh tiles and the world axes and it can reduce the chance of the agent to move along the tile edges.