Hi everyone and Happy New Year!
I'm using 1.85.5, 2D game, and I'm having an issue that only seems to pop up on my iOS builds. On Mac & Windows it it fine. I'm working on Unity 6.2 on a Mac.
When the player is running, especially when going around an edge or corner or curved surface near the boundary of the navmesh or around a hole in the navmesh, there is a lot of "flickering" or "stuttering" in the running animation.
There's one scene in particular where it's especially noticeable. I'm including a link to a google drive with a screenshot of that scene, and shots of the various settings that I think might be causing it, but any advice is most appreciated!
I'm guessing it has to do with how the player is pathfinding around the edges of the navmesh, but I can't seem to figure it out.
Sorry if I'm leaving out any details. Hopefully the relevant info is in the screenshots. Thanks again.
-J
https://drive.google.com/drive/folders/1rwDIbrf7jKN5th0zyai0UrgQtR1DDbUD?usp=sharing
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Try switching the scene's Pathfinding method to A Star 2D - it behaves a little differently, but is much faster when it comes to more complex NavMeshes.
Thanks so much! I'll give it a try. Happy New Year
Unfortunately that made it much worse. Using Pathfinding it was just jittery when the player turns or goes around a corner, but using A Star 2D made it extremely jittery the whole time they're moving.
Is A Star 2D also jittery in the Editor? Try running the Profiler to see if spikes are appearing - if so, select one and share a screenshot of its hierarchy.
I didn't get any spikes while the player was running. Nothing out of the ordinary. But I found that when I decrease the Movement>Destination Accuracy from 1 to around .75, the problem goes away.
But then my markers become pretty inaccurate, so I'd rather not do this, but at least it pinpoints where the problem is coming from. I guess the scene in question's navmesh hole is hard for the player to run around on iOS. I tried to make it as smooth and gentle as possible, but it still gives it grief.
Could you PM the scene and your Settings Manager to me? I'll take a look.
Thank you so much! Of course, whenever is convenient for you. Very much appreciated.