ml-agents icon indicating copy to clipboard operation
ml-agents copied to clipboard

NavMeshAgent does not work

Open r-lipton opened this issue 8 years ago • 10 comments

Hello

I am using a NavMeshAgent component in my environment, making a character to move to a target destination. Using the player brain, it works in Unity and it works also when I export it to Windows and Linux. However, when I run the environment using python (in an Ubuntu instance), the character does not move. There is no error in the log file. The training can run, but the character does not move.

Any idea? Thanks

r-lipton avatar Mar 21 '18 16:03 r-lipton

Just tested in Windows using python, same results :(

r-lipton avatar Mar 21 '18 17:03 r-lipton

I was using CharacterController.Move to move the character. A workaround is to modify directly the transform.position

r-lipton avatar Mar 22 '18 12:03 r-lipton

It looks like the NavMeshAgent is updating periodically only every ~100 steps.

r-lipton avatar Mar 29 '18 14:03 r-lipton

I am using NavMeshAgent but moving my character manually. I call SetDestination and then using nextPosition and steeringTarget to navigate.

RossMelbourne avatar Mar 30 '18 22:03 RossMelbourne

thanks for filing. we've logged this bug and will report back once we have a resolution.

shihzy avatar Apr 11 '18 22:04 shihzy

@r-lipton Do you see any error message when you tested it in the Windows platform? More information would be helpful here.

xiaomaogy avatar May 17 '18 21:05 xiaomaogy

No, there is not error when tested on Windows neither on Linux

r-lipton avatar May 22 '18 16:05 r-lipton

@r-lipton I'm not really familiar with NavMeshAgent, and so not able to reproduce what bug you have here. Maybe it would be helpful if you can share the steps and the source code you have, so that we can reproduce the bug you have.

xiaomaogy avatar Jun 27 '18 23:06 xiaomaogy

@r-lipton I am closing this thread due to inactivity, but feel free to re-open it if you desire.

xiaomaogy avatar Sep 06 '18 20:09 xiaomaogy

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jan 03 '20 02:01 lock[bot]