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

Question Timeline and Animation Rigging

Discussion in 'Timeline' started by Paincho, Feb 25, 2023.

  1. Paincho

    Paincho

    Joined:
    May 7, 2014
    Posts:
    4
    Hello I used Animation Rigging to make a character hold a gun and animated the gun firing with a timeline.
    The issue is when I play the timeline the two bone IK doesn't follow the target attached to the gun.
    Is it a bug or am I doing something wrong ?
    I've made a video of the issue here :
     
  2. akent99

    akent99

    Joined:
    Jan 14, 2018
    Posts:
    588
    How did you tell the IK targets to follow the gun? And does the gun consist of multiple (nested) game objects where the nested object is the one moving? (Are you following the wrong object?)
     
  3. Paincho

    Paincho

    Joined:
    May 7, 2014
    Posts:
    4
    I used animation rigging. Created a new rig in it I have two separate game objects with a two bone ik script each. Each pointing to a target transform child of the gun. When the gun is animated by the timeline both targets move with it but the hands don't.
    I scrapped the idea of using animation rigging inside of timeline and just modified the animation to get the result I wanted.