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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Animation Rigging issue

Discussion in 'Animation' started by unitydevv, Aug 9, 2020.

  1. unitydevv

    unitydevv

    Joined:
    Aug 14, 2016
    Posts:
    11
    Hello all,
    I am facing an issue with animation rigging..I am working on a TPS controller,

    Firstly I have used multiparent constraint to control gun's position and rotation to a transform which is working fine (gif 1)

    Then i used two bone constraint to control player left hand to a transform which is working fine too (gif 2)

    but then when i use it to control the right hand to a transform the gun suddenly start animating with the body(gif 3 ) .

    The gun is actually on player right hand in hierarchy, but i dont understand why it matters as the gun already has a multiparent constraint.

    Any help will be greatly appreciated.
     
  2. unitydevv

    unitydevv

    Joined:
    Aug 14, 2016
    Posts:
    11
    Here is some screenshots of my hierarchy
     

    Attached Files:

  3. unitydevv

    unitydevv

    Joined:
    Aug 14, 2016
    Posts:
    11
    Here are the Gifs ...
     

    Attached Files:

    • 1.gif
      1.gif
      File size:
      3.8 MB
      Views:
      307
    • 2.gif
      2.gif
      File size:
      2.8 MB
      Views:
      313
    • 3.gif
      3.gif
      File size:
      3 MB
      Views:
      300
  4. unitydevv

    unitydevv

    Joined:
    Aug 14, 2016
    Posts:
    11
    Hi,
    I tried hiding the gun in player hand and dropping a new gun prefab in the player root hierarchy..now everything is working fine. So gun should be in the root hierarchy for the two bone constraint to work correctly rather than in the player hand.

    but now i am facing problem with reload animation...how will i sync the players reload animation with the gun which has aim constraint.
     
    Last edited: Aug 15, 2020