Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agents do not move when requested target is on the same polygon #58

Open
70fu opened this issue Feb 8, 2016 · 4 comments
Open

Agents do not move when requested target is on the same polygon #58

70fu opened this issue Feb 8, 2016 · 4 comments
Labels
Milestone

Comments

@70fu
Copy link
Contributor

70fu commented Feb 8, 2016

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.

@70fu 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
@Robmaister Robmaister added the bug label Feb 8, 2016
@Robmaister Robmaister added this to the 1.0 milestone Feb 8, 2016
@Robmaister
Copy link
Owner

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.

@kulesz
Copy link

kulesz commented Apr 24, 2016

I can confirm - this bug is present both in example project and custom project made from scratch.
Is there a simple way to fix it?

@Robmaister
Copy link
Owner

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.

@TomKuhn
Copy link

TomKuhn commented Jul 3, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants