Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

I used unity ik but the weapon does not go upwards and downwards while aiming

Discussion in 'Getting Started' started by Blan3X1, Dec 24, 2020.

  1. Blan3X1

    Blan3X1

    Joined:
    May 29, 2019
    Posts:
    28
    I used unity IK but the weapon does not go upwards and downwards while aiming
    Help me :)

     
  2. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    10,408
    We literally have no idea how you've set up your IK. How are we supposed to help you?
     
    UnityMaru and DimitriX89 like this.
  3. DimitriX89

    DimitriX89

    Joined:
    Jun 3, 2015
    Posts:
    551
    Yeah, exactly. It requires multiple steps to set up. More than clicking a checkbox in animator layer
     
  4. DimitriX89

    DimitriX89

    Joined:
    Jun 3, 2015
    Posts:
    551
    You'll absolutely need coding, first to calculate your IK tagrets' position based on your aiming vector, then to specify which body parts will be affected and when.
     
  5. Blan3X1

    Blan3X1

    Joined:
    May 29, 2019
    Posts:
    28
    I used IK helper asset which is free on asset store and i have already set the ik target position based on aiming still it's not working
     
  6. DimitriX89

    DimitriX89

    Joined:
    Jun 3, 2015
    Posts:
    551
  7. Blan3X1

    Blan3X1

    Joined:
    May 29, 2019
    Posts:
    28
  8. DimitriX89

    DimitriX89

    Joined:
    Jun 3, 2015
    Posts:
    551
    Havent used it personally to be honest, but looks simple enough, judging by documentation. Do the dummy objects you selected as targets move as intended? (if you check them in Scene mode while the game is running) Are there any errors in debug console? And finally, we could take a look at the screenshot of the IK helper component in the inspector.
     
  9. Blan3X1

    Blan3X1

    Joined:
    May 29, 2019
    Posts:
    28
    I changed to Animation rigging now its working pretty good tough