GetComponent(NavMeshAgent).destination = transform.forward;
Doesnt move forward! Transform always moving same direction.
Please help.
GetComponent(NavMeshAgent).destination = transform.forward;
Doesnt move forward! Transform always moving same direction.
Please help.
Use NavMeshAgent.destination if you want the Agent to move to a certain point in the world. The agent will find the way on its own …
If you build a player controller based on the NavMeshAgent, use NavMeshAgent.Move(some Vector3), see >> this thread for more information.