Search Unity

Help combining animations from different creators

Discussion in 'Animation' started by Clydey2Times, Sep 8, 2019.

  1. Clydey2Times

    Clydey2Times

    Joined:
    Oct 24, 2017
    Posts:
    175
    Hey all. The game I'm working on uses animations from several different creators. Unfortunately, some of them don't combine particularly well. For example, the gun game object on my player character is well-positioned with the aim animation I'm using. However, when the player character transitions back to an idle animation (from a different creator), the gun isn't in the appropriate position. It's floating next to the hand.

    Is there a tidy way to deal with such issues? While transitioning to an idle animation, would lerping the gun's rotation and position to the appropriate values work? Or is there a simpler solution I just haven't thought of?

    Any help is appreciated.
     
  2. Clydey2Times

    Clydey2Times

    Joined:
    Oct 24, 2017
    Posts:
    175
    Bump. Can anyone advise?
     
  3. dibdab

    dibdab

    Joined:
    Jul 5, 2011
    Posts:
    828
    lerping wouldn't work. it is a fixed position.

    for weapons, holdable props etc use holster, hold position

    what I do is parent them to same-named transform under hand.
     
  4. Clydey2Times

    Clydey2Times

    Joined:
    Oct 24, 2017
    Posts:
    175
    The way I've done it seems to work.

    I have a gunholder as a child of the player's right hand and the gun game object as a child of the gunholder. I lerp the rotation of the gunholder between two different rotations, depending on whether the player is aiming or idle. It's pretty seamless.

    Is that basically what you're describing?