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.

Joints not working/no gravity? with Animator Component

Discussion in 'Animation' started by Poribo, May 25, 2014.

  1. Poribo

    Poribo

    Joined:
    Aug 20, 2013
    Posts:
    7
    I am trying to get my character's hair tail to swing via joints on bones, but during runtime it doesn't animate.
    If I turn the animator component off then the hair swings freely and works as intended.

    I'm not sure if the component is affecting the gravity or just locking up the bones.

    I think it used to work on the version before 4.3.4 so maybe they've changed something in this version?

    Any ideas on how to fix this?
     
  2. TMPxyz

    TMPxyz

    Joined:
    Jul 20, 2012
    Posts:
    766
    Is there keyframe in the animation affecting the ponytail bone? If that's true, then it won't swing.

    the Animation update is after Physics update and will overwrite the physics calculation result.
     
  3. Poribo

    Poribo

    Joined:
    Aug 20, 2013
    Posts:
    7
    No, all the animations that have been exported didn't have keyframes on the physic bones.
    It used to work before, I don't know why it doesn't now.
     
  4. Poribo

    Poribo

    Joined:
    Aug 20, 2013
    Posts:
    7
    I've updated to 4.5, still no changes.
    Even if I leave the default animation blank, the hair bones still stay fixed.
    In the animator component, if I set the controller to none it works. So I'm not really sure where to troubleshoot next.
     
    Last edited: Jun 6, 2014
  5. jRocket

    jRocket

    Joined:
    Jul 12, 2012
    Posts:
    690
    So, for your animations, what if you make a custom mask that masks out your physics bone/s transforms?
     
  6. Mecanim-Dev

    Mecanim-Dev

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    1,675
    Hi nightFlarer,

    Can you log a bug with a simple project with your avatar and the controller, we will take a look at what is going on.
    You should receive a bug number when you are done, send it to me here

    Best regards,
    Sonny
     
  7. Poribo

    Poribo

    Joined:
    Aug 20, 2013
    Posts:
    7
    It's all fine now. I made a new controller and redid everything and now it works.
    There must of been something wrong in the old controller.
    Thanks for replying everyone.