I’ve been trying to resolve this issue where my agent moves but the object it’s attached to doesn’t. I have several other “enemies” that work just fine, but this one in particular doesn’t. It just walks in place. In the scene view during play mode however I can see the agent moving to the correct position. What would cause that to happen? I have sifted through the forums for hours with no luck finding a similar issue or resolution. I may also just be burned out for the day. Thanks for any advice!
It shouldn’t be an issue. all my enemy characters are built with the same structure. Most of them work, but there a few with this issue. the agent is on the parent object, the mesh is a child. animations work properly, the child position just doesn’t update. I thought maybe it was an animation forcing it in place but turning off animations didn’t help.
Do you by any chance have updatePosition from your NavMeshAgent set to false? If you, you have to manually sync the position of your GameObject to the position of your NavMeshAgent.
I will check. I have been using a workaround to force the object position to the agent through code, but I don’t see why it would turn off on some objects and on on others. I am currently trying to update the project to 2019.3 and have other issues that are more important right now.