Mecanim Integration

To integrate it with mecanim which class should i edit? RVOController? i need speed and rotation value. which fields can i use?

Hi

I haven’t done any mecanim integration yet, but if I would do it, I would use the RVOController.
On every update you should use a direction value based on
Vector3.Angle(transform.forward, rvoController.velocity);
That will just give you the angle, some more work will be required to scale it to something which fits your animations

Then the speed would be velocity.magnitude multiplied by some value.

In LateUpdate, i.e after all animations have been applied, including mecanim movement (I think), you will need to call the Teleport method on the RVOController since mecanim will probably move the character slightly differently than what the rvo system predicts, you should however try to make the mecanim movement and the non-mecanim movement match as closely as possible for the highest quality movement and avoidance.

Do you mean that?
i will have 2 gameobjects; A: RVOObject, B:MecanimCharacterObject.
i will get object A position with A.transform.position and rotation with Vector3.Angle(B.transform.forward, A.rvoController.velocity);
i will you this position and rotation and move Mecanimobject
i will set A.getcomponent().Teleport(B.transform.position)

because it is hard to sync both game objects i decided to use just rvo object and set animators speed with rvo speed. it will not be a perfect solution, it will be an optimum solution. i have problem with rvo object rotations. they rotate very fast. how can i make them to rotate smoothly?