Hello, I wish you good work. I have a problem related to Unity's animator part. As seen in the video in the link I posted, the characters initially perform their normal running animation movements, but then they fall. What is the reason of this? I am using the raycast method for the enemy ai that if they see the player clear distance they start running towards him. Code (CSharp): using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; public class DüşmanAI : MonoBehaviour { public NavMeshAgent enemy; public GameObject player; Animator animator; float distance = 100f; public LayerMask hedef; Ray ray; RaycastHit hit; // Start is called before the first frame update void Start() { animator= GetComponent<Animator>(); } void check() { if (Physics.Raycast(transform.position, transform.forward, out hit, distance) ) { } } // Update is called once per frame void Update() { enemy.SetDestination(player.transform.position); animator.SetBool("koşma", true); //check(); } }