- Home /
Question by
Chocolade · Apr 25, 2017 at 05:03 PM ·
c#scripting problemscript.navmeshagent
Is it right to turn false both navmeshagent updateRotation and updatePosition properties ?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
public class Navmeshagent : MonoBehaviour {
NavMeshAgent nav;
// Use this for initialization
void Start ()
{
nav = GetComponent<NavMeshAgent>();
nav.updateRotation = false;
nav.updatePosition = false;
}
// Update is called once per frame
void Update () {
}
}
The problem is the thirdpersoncontroller have a rigidbody and i want also to add a navmeshagent. But when using the navmeshagent it's making problems. Doing this in the small script solve the problems with the navmeshagent but the question now is if the navmeshagent still fully working or changing this properties to false makung the navmeshagent out of use ? like i removed the navmeshagent component ?
Comment