You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a new target is requested via RequestMoveTarget on the agent and the given target is on the same polygon of the navmesh as the agent, then the agent does not move.
The text was updated successfully, but these errors were encountered:
70fu
changed the title
Agents do not move when target is on the same polygon
Agents do not move when requested target is on the same polygon
Feb 8, 2016
This is something that I'm aware of as the bug appears in the Examples project. It was pretty low on my list of bugs to fix as I assumed it was on the Examples end and not the SharpNav end. I can look into this soonish.
My most recent changes to the pathfinding API (refactoring and cleaning things up) introduced alternate behavior where agents appear to be running back and forth on the boundary of the target polygon, I'll hunt down the source of the bug and include it in the next release.
I fixed this up locally - NavMeshQuery's InitSlicedFindPath earlies out too fast if the source and destination polyID's are the same Move the check down below after the query has been initialized.
When a new target is requested via RequestMoveTarget on the agent and the given target is on the same polygon of the navmesh as the agent, then the agent does not move.
The text was updated successfully, but these errors were encountered: