Search Issue Tracker

Active

Under Consideration for 2022.3.X

Votes

0

Found in

2022.3.21f1

2023.2.12f1

2023.3.0b9

6000.0.0b11

Issue ID

UUM-65360

Regression

No

Agent velocity resets to 0 when calling NavMeshAgent.SetDestination() to an unreachable position

--

-

Reproduction steps:
1. Open the attached “SetDestinationRepro.zip” project
2. Open the “SampleScene”
3. Enter the Play mode
4. Check the second checkbox in the Game view
5. Observe the NavMesh Agent movement and velocity

Expected result: Agent smoothly moves and has stable velocity
Actual result: Agent’s movement is glitching and velocity keeps resetting to 0

Reproducible with: 2022.3.21f1, 2023.2.12f1, 2023.3.0b9
Couldn’t test with: 2021.3.35f1 (AI Navigation package errors)

Reproducible on: Windows 10 (User reported), Windows 11
Not reproducible on: no other environment tested

Notes:
- The first checkbox calls SetDestination to a reachable position and agents' movement is smooth and velocity is stable
- The third checkbox uses a manual SamplePosition/CalculatePath workaround which makes the movement smooth but is not ideal due to it stalling the main thread while calculating the path

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.