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

Hinge joints affecting grandchildren

Discussion in 'Physics' started by karnarex, May 3, 2015.

  1. karnarex

    karnarex

    Joined:
    Dec 22, 2014
    Posts:
    3
    Hi, I am trying to create servo in unity to simulate robot, but I ran into a wierd problem (but, I guess, all physic problems are wierd).
    I used hinge joints to create servos, set HingeJoint.limits and velocity, so hinges are constantly "pushing" into limits. It's a little jiggly, but it's the best way as far as I can see it now.
    But strangely enough, working hinge joints seem to affect their grandchildren! As you can see in this video, knee of left model is rotating, while it's velocity is set to zero.

    Here is an image of hierarchy.


    I am using hingeJoints to connect servos to their parent and fixedJoints to connect Right hip to Servo02, Right Knee to Servo03, Right Foot to Servo04.

    https://drive.google.com/file/d/0B4-yUbCiwsheN25ZR3pJWXFVVjg/view?usp=sharing

    So, what am I doing wrong?

    Thank you, in advance.
     
  2. Witcher_CA

    Witcher_CA

    Joined:
    May 5, 2015
    Posts:
    19
    I think your controller (script) is not written correctly.