Search Unity

Question Scaling model in animation create unwanted position changes

Discussion in 'Animation' started by kasmurdanto, Dec 10, 2022.

  1. kasmurdanto

    kasmurdanto

    Joined:
    Jun 6, 2019
    Posts:
    10
    I'd like my character to change scale (kind of elongating) during the jump animation, and get back to its initial scale at the end of the animation, while keeping its transform of the Y axis the same at the beginning and end of the animation.

    I'm having an issue with the transform position of the character, at the beginning and end of the animation, it should be the same, but when I apply scaling, it changes the position as well, making my character clip in the ground.

    After a few jump with dynamic scaling :

    upload_2022-12-10_15-32-24.png

    After a few jump with a constant scale of 1 :
    upload_2022-12-10_15-33-29.png

    My animation modify the position and rotation of my character as well, but this works fine as long as I don't add scaling animation.

    The position of the character is controlled only by animation using root motion.
    My guess is that changing the scale changes the root transform and somehow that messes up the
    transform itself.

    What can I do to fix that ?
     
  2. Noodle_Meanie

    Noodle_Meanie

    Joined:
    Sep 11, 2021
    Posts:
    110
    You could try making it a part of the animation. Sry if this isn't helpful.
     
  3. kasmurdanto

    kasmurdanto

    Joined:
    Jun 6, 2019
    Posts:
    10
    Thank you for trying ! Could you elaborate a bit ? The animation is done entirely inside Unity, the model was done with Blender.