- Home /
Question by
Laguna_Seca · Mar 13, 2014 at 08:53 PM ·
c#animationtransformobjectsynchronization
Synchronization object animation motion (NavMeshAgent)
There bipedal model that has two states - stand (Idle) and move (walk).
It is the NavMeshAgent, it moves to a point using such a code:
transform.LookAt(new Vector3(point_buffer.x, 0 ,point_buffer.z));
GetComponent<NavMeshAgent>().destination = new Vector3(point_buffer.x, 0.5f, point_buffer.z);
animator.SetBool("walk", true);
But the problem is that sometimes the speed step animation does not match the speed of the agent. He does not move at a constant speed, and when the distance is equal to 0 I stop animation, but still slips to another second as if by inertia. The object is not RigB.
Help pls.
Comment