Hi folks,
So basically all i want to achive is to have an enemy(nav mesh agent) falling down to the hole.
I have a trouble with my enemy falling down too fast despite the fact i have rigidbody activated with gravity checked.
Here is the main issue presented on vid.
Here is the code for following player:
[SerializeField]
Transform skeleton;
NavMeshAgent agent;
void Start () {
agent = this.GetComponent<NavMeshAgent> ();
}
void Update () {
Vector3 vec = skeleton.transform.position;
agent.SetDestination (vec);
}
void OnTriggerEnter(Collider player)
{
if (player.tag == "PlayerSkeletonFull") {
FindObjectOfType<GameManager> ().EndGame ();
SceneManager.LoadScene (SceneManager.GetActiveScene ().buildIndex);
}
}
Here is my settings for an enemy:
SettingsIMG