Questions about implementing your NavMesh?

thanks this helped me with my issue too :slight_smile:

Sir I’m using Unity 2019.4 version. But player rotates insted of moving towards the target.

MY SCRIPT

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;

public class Mover : MonoBehaviour
{
[SerializeField] Transform target;
// Start is called before the first frame update

// Update is called once per frame
void Update()
{
    GetComponent<NavMeshAgent>().destination = target.position;
    
}

}

Sir help me with this pls.

We’ll start by checking your Animator. Make sure that the Apply Root Motion is unchecked.
image

I spent about 1 hour banging my head against the wall on this.
When dragging enemies into the game, they appear to be hovering in the air just above the NAVMESH.
I found there’s a setting hidden under ADVANCED when baking the NAVMESH…it’s a setting called HEIGHT MESH.
After checking this box, and re-BAKING, the player/enemies are placed correctly.

image

Hi all I completet the lesson 11 but I have this error

“SetDestination” can only be called on an active agent that has been placed on a NavMesh.
UnityEngine.AI.NavMeshAgent:set_destination(Vector3)
Mover:Update() (at Assets/Scripts/Mover.cs:13)

My Script
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;

public class Mover : MonoBehaviour
{
[SerializeField] Transform target;

// Update is called once per frame
void Update()
{
    GetComponent<NavMeshAgent>().destination = target.position;
}

}

resolved I let active the mash