How can a NamMeshAgent be configured to always look towards its next path position, but never move there?

by JSideris   Last Updated June 12, 2019 03:13 AM

I'd like to have something like an on-screen panel that appears in the direction that you are supposed to go.

The panel is a NamMeshAgent with a speed of 0. I was hoping something like this would work:

In Start: agent.updateRotation = false;

In Update: this.transform.LookAt(agent.nextPosition);

But no luck.

Should be straight forward, I'm just not too familiar with the Unity 2019 nav mesh and can't find the answer online. Thanks.

Tags : unity c# navmesh


Related Questions



In unity, convert mesh to navmesh

Updated January 24, 2019 14:13 PM

Unity 5.6 NavMesh update at runtime

Updated June 18, 2017 23:13 PM

NavMesh Agent not climbing up stairs

Updated August 08, 2017 10:13 AM

Agent taking different paths?

Updated August 20, 2017 12:13 PM