Search Unity

Make not child object to follow another object(Animation)

Discussion in 'Animation' started by MikeyJY, Feb 14, 2020.

  1. MikeyJY

    MikeyJY

    Joined:
    Mar 2, 2018
    Posts:
    530
    I create an axe chop trees with arms.
    This is my skeleton:
    Code (CSharp):
    1. Spine
    2.     Left Shoulder
    3.          Left Arm
    4.                Left ForeArm
    5.                       Left ForeArmRoll
    6.                              LeftHand
    7.                                      RIghtThumb1
    8.                                            RightThumb2
    9.                                                 RightThumb3
    10.                                      Leftndex1
    11.                                            LeftIndex2
    12.                                                 LeftIndex3
    13.                                      LeftMiddle1
    14.                                            LeftMiddle2
    15.                                                 LeftMiddle3
    16.                                      LeftRing1
    17.                                            LeftRing2
    18.                                                 LeftRing3
    19.                                      LeftPinky1
    20.                                            LeftPinky2
    21.                                                 LeftPinky3
    22.     Right Shoulder
    23.          Right Arm
    24.                Right ForeArm
    25.                       Right ForeArmRoll
    26.                              RightHand
    27.                                      RIghtThumb1
    28.                                            RightThumb2
    29.                                                 RightThumb3
    30.                                      RIghtIndex1
    31.                                            RightIndex2
    32.                                                 RightIndex3
    33.                                      RIghtMiddle1
    34.                                            RightMiddle2
    35.                                                 RightMiddle3
    36.                                      RIghtRing1
    37.                                            RightRing2
    38.                                                 RightRing3
    39.                                      RIghtPinky1
    40.                                            RightPinky2
    41.                                                 RightPinky3
    42.                                      Hatchet
    43.                            
    44.  
    If you didn't noticed, the Hatchet is the child of the righthand object. First I created an animation for RightHand swing and the Hatchet is attached to the right hand so the hatchet was moving perfectly with the right arm. But After I finished the animation for the right arm, I tried to make the left hand to swing also.
    That's my initial keyframe(Idle):
    upload_2020-2-14_23-9-14.png


    The soar before the hit the tree:
    upload_2020-2-14_23-10-43.png

    The moment of the collision with tree:
    upload_2020-2-14_23-11-36.png

    And back to the soar if you immediate click again or to idle if you don't press click again in an interval of 0.5 sec

    As you can see, the left arm is on axe at idle, soar, and imact moments. Because the axe is the child only for right hand the left arm is finding the shortest way from idle to soar to impact with tree moment, the left arm is in air between keyframes:
    upload_2020-2-14_23-17-3.png

    I wish you understood my problem because It is very hard to me to express this thread because. I'm just starting to learn about animations.

    P.S: I tried to add intermediare points between keyframes, but there are 90 frames between soar and impact and it looks very strange.
     
    Last edited: Feb 14, 2020