Search Unity

Question Root motion animation not playing like as preview inspector

Discussion in 'Animation' started by Berati, Sep 2, 2021.

  1. Berati

    Berati

    Joined:
    Dec 13, 2015
    Posts:
    5
    Hello ,

    I've been dealing with this kind of animation problems for a long time.I would be very happy if someone could help.

    I have 64 frame slam dunk animation , and ı want to play in root motion mode.Apply root mode is true and animation settings is fine.
    Capture.PNG

    Everything is normal until he holds the pot.But after that in play mode character snapping to wrong position.



    It's seem fine on animation preview , but in play mode working wrong.What could be the cause of the problem?
     
    msgulberk likes this.
  2. msgulberk

    msgulberk

    Joined:
    Jan 20, 2020
    Posts:
    1
    I have a similar problem, in the inspector preview mode and in the scene mode I can play my animation correctly with applied root motion but in the gameplay mode it doesn't add the root motion although I enabled apply root motion in the animator.
     
  3. bobadi

    bobadi

    Joined:
    Jan 3, 2019
    Posts:
    670
    imo this looks like hip calculated root position (unity's default)

    if the original file has root motion curves of animated object position authored (usually at feet)
    root transform can be set (root node if I remember correctly) in animation properties
     
    Last edited: Dec 27, 2022