-
Notifications
You must be signed in to change notification settings - Fork 187
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
AI Jittering/Not moving - [Issue] #32
Comments
Hello, NavMeshPlus is making proxies for Unitity's NavNesh System on "bake" and does not affect Agent or any calls to NavMesh. Make sure that Agent is on NavMesh, that their Z values are equal. Also take a look at demo project for any tips https://github.com/h8man/RedHotSweetPepper |
Thanks for the quick reply.
Wondering if those two things change anything? :) |
Also sorry, I just checked your example scene. |
Here is sample for non-tile-mapped scene https://github.com/h8man/RedHotSweetPepper/blob/master/Assets/Scenes/SampleSceneNoTileMap.unity And here for physics collider |
Thanks will check them out, I have kinda solved the issue, so I will close this now, thanks again for the help |
I've come across nearly the exact same issue and the solution mentioned here fixed it. For me it seems to occur when you set a destination, and the NavAgent's X position matches that of the destination's X position. If I call SetDestination multiple times with the same target I get this jittery movement. Moving the NavAgent a tad to the left/right (by setting it's velocity) gets it moving properly which is very odd. |
Been a while since I touched the project (on hold...indefinitely 😂) but glad it worked! It's little "hacky" things like that which make me love dev (and also hate it) |
It is what it is. Out of the huge suite of tools & packages Unity and other users offer, there's bound to be one or two things that don't work correctly. I just wanted to leave a comment explaining the conditions needed to get (and bypass) this bug. |
Hi,
Sorry about this, I am getting a weird issue with the asset.
I have a tilemap world, I have baked the navmesh and it's baked nicely, and the AI do move.
However the AI tend to get stuck every now and then and won't move, sometimes they start moving once the player moves or if I just leave it long enough, but I have no idea why this happening.
I have attached some images of:
How the baked navmesh looks
What seems to be occurring
Will also include the code of my AI:
AI can wander around randomly
AI can patrol by moving towards patrol points.
Thanks
Above Gif is not representative of the framerate in-game, everything runs smoothly in-game except for the movement
The text was updated successfully, but these errors were encountered: