Search Unity

Question IK Limb Solver 2D script API

Discussion in 'Scripting' started by uralkemal, Jun 28, 2021.

  1. uralkemal

    uralkemal

    Joined:
    Oct 17, 2020
    Posts:
    3
    Hello, I'm trying to make a character to ride unicycle. I used limb solver 2d for feet. The problem is I want to fix feet to a circle (physics based sprite). If circle turns feet will stay on pedals for example. I tried to use limb position from script but I couldn't do it. Anyone help how can I do it on script or editor? Apart from that how can I set position for limbs from script?
     
    Last edited: Jun 28, 2021
  2. RadRedPanda

    RadRedPanda

    Joined:
    May 9, 2018
    Posts:
    1,648
    You could just use Hinge Joints and attach them like that.
     
    uralkemal likes this.
  3. uralkemal

    uralkemal

    Joined:
    Oct 17, 2020
    Posts:
    3
    I can't use hinge joint. Because I can hinge bones only. I'm trying to move limb solver's position.
     
  4. uralkemal

    uralkemal

    Joined:
    Oct 17, 2020
    Posts:
    3
    okay I made solver object child of wheel. now works