Disable position update in rvo controller.cs

Hi,

RVO controller is a really nice nice script. But as I want to integrate that with Mecanim root motion I want to be able to disable the position update on this script. and teleport the rvocontroller in the OnAnimatorMove step. (I feed the rvo controllers velocity in Mecanim)

I Basically edited the RVOController.cs as follows:

        public void Update () {

        rvoAgent.DesiredVelocity = desiredVelocity + force*wallAvoidForce; 

        Vector3 updatedPosition = realPos + Vector3.up*height*0.5f - center;
        if (UpdatePosition)
        {
            tr.position = updatedPosition;
        }
        //Debug.Log (((tr.position - lastPosition).magnitude / Time.deltaTime).ToString("0.00"));
        lastPosition = updatedPosition;

Or should better write my own rvo controller to ensure I won’t break anything in updates?

Freek Jan

I’m curious about this as well. Have you had any success with this since you posted this over a year ago?

@local306 See my answer to your other thread: Help: Root Motion combined with RVO