Hi! I trying to use pathfinding with local avoidance and rootMotion.
I use next code in Update:
Vector3 nextPosition;
Quaternion nextRotation;
agent.MovementUpdate(Time.deltaTime, out nextPosition, out nextRotation);
var curSpeedAnim = animator.deltaPosition.magnitude / Time.deltaTime;
rvoController.SetTarget(agent.destination, curSpeedAnim, curSpeedAnim * 1.2f, agent.endOfPath);
var offset = rvoController.CalculateMovementDelta(root.position, Time.deltaTime);
root.position += offset;
root.rotation = nextRotation;
agent.FinalizeMovement(root.position, nextRotation);
But with agents are moving more quicker than animation movement speed. And in this reason they are moving with slips.
How can I use rvoController.CalculateMovementDelta for correct result?