Forum rules - please read before posting.

Root Motion Turning not working

Is Root Motion turning not working for anyone else? I've changed the slider to 1 but get no results.
If I set Turn Speed to 0 it starts working, but the Turn float starts behaving erratically(for example, it never reaches 0 on an Idle state).

Any help is appreciated, thanks

Comments

  • What are your AC/Unity versions, and does your Animator have "Apply Root Motion" checked?

    Debug test: open up AC's Char script and find the line (around 1881):

    newRotation = Quaternion.Lerp (TransformRotation, GetTargetRotation (), turnSpeed * GetScriptTurningFactor () * Time.deltaTime);
    

    Immediately above it, copy/paste:

    if (GetScriptTurningFactor () <= 0f) return;
    

    Does that resolve it?

  • edited February 12

    Hi! I'm using AC 1.82.5 and Unity 2022.3.57f1. I have root motion checked.

    Unfortunately, the fix didn't solve the issue. I'm currently fixing it by manually setting turn speed to 0 and root motion to 1 when turning and the opposite when not.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.