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

Discussion Basic rigging question for 2D character

Discussion in '2D' started by nathanjams, Apr 16, 2023.

  1. nathanjams

    nathanjams

    Joined:
    Jul 27, 2016
    Posts:
    302
    Can anyone explain why my pivot point is added to the Chain Length when adding a CCD Solver 2D when trying to rig my 2D character with IK?

    Basically, I have a lower arm and upper arm when I try to connect the lower arm with the CCD Solver 2D I get this:

    Is there a way around this or do I just need to match up my pivot point to the bone?

    Thanks in advance

    Nathan
     
  2. DavidTeo

    DavidTeo

    Unity Technologies

    Joined:
    Apr 1, 2021
    Posts:
    69
    Hello, will it be possible to share your IK set up so we can have a better understanding in what's being done?
     
  3. nathanjams

    nathanjams

    Joined:
    Jul 27, 2016
    Posts:
    302
    @DavidTeo

    Hi David,

    Here is the Spire slicewith the pivot point on the elbow:
    And the bone of the slice:
    This is the IK Target:

    Thank you,
    Nathan
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    37,222
    Beware of Pivot / Center and Global / Local settings in the Scene window. There's buttons to toggle these, or you can press Z or X to toggle them too. Is that perhaps what you are seeing here?
     
    nathanjams likes this.
  5. nathanjams

    nathanjams

    Joined:
    Jul 27, 2016
    Posts:
    302
    @Kurt-Dekker

    Thanks for your comment, I was unaware of that feature. I played around with it and am getting closer but am still stuck on the pivot points being used by the IK components.

    You can see here the arm and the shoulder has 1 bone and one pivot, the elbow has one bone and one pivot and teh write has one bone:

    But the pivor points are making the IK work weirdly. Is there a way to have the IK only detect bone points and not pivot points?

    New to 2D rigging, but not Unity. Just a bit confused atm.

    Much thanks,
    Nathan
     
  6. nathanjams

    nathanjams

    Joined:
    Jul 27, 2016
    Posts:
    302
    Well, I installed Final IK and it is giving me a lot more control than the built in Unity 2D IK.

    Thanks for your time,
    Nathan