Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Exporting Locomotion Max Files

Discussion in 'Animation' started by kikobuyo, Jan 29, 2015.

  1. kikobuyo

    kikobuyo

    Joined:
    Jan 20, 2015
    Posts:
    11
    Hey guys

    I have a character run forward in 3Dstudio max, he starts off 0,0,0 and ends up 0,2,0. Start and end pose are the same. I am trying to figure out how to have my character move constantly forward in Unity. Currently right now, when i press forward he starts off 0,0,0 moves forward to 0,2,0 but then pops back to 0,0,0. How do I get my animation to continue to move forward?
     
  2. jchapman723

    jchapman723

    Joined:
    Jan 27, 2014
    Posts:
    27
    Sounds like you need to define the root bone for your character in the "rig" section. Your root bone should also be moving with your character, typically following the player's hips on the ground plane.
     
  3. kikobuyo

    kikobuyo

    Joined:
    Jan 20, 2015
    Posts:
    11
    Ok I have my root bone moving forward, and I have my animation set to loop in Unity. Now my characters is walking inplace. Its set to Animation Type - Generic. And here is the settings image. In the animation viewer its moving forward at a constant sped, which is what i want. But in game its moving inplace.

    upload_2015-1-29_22-45-28.png
     
  4. jchapman723

    jchapman723

    Joined:
    Jan 27, 2014
    Posts:
    27
    Ensure that the moving bone is selected in the rig section.

    Also how do you have the character set up in game? Are you running any Ai plugins or scripts on the character to move it or are you simply letting the animator play this animation in its default state?
     
  5. kikobuyo

    kikobuyo

    Joined:
    Jan 20, 2015
    Posts:
    11
    Awesome it's working, I was using a standard script from mechanim tutorial, thank you