Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Anchor Offset Issue of Hinge Joint

Discussion in 'Physics' started by SwirlGames, Jan 8, 2024.

  1. SwirlGames

    SwirlGames

    Joined:
    Apr 1, 2023
    Posts:
    1
    upload_2024-1-8_7-50-56.png

    As shown in the figure above, this is in the editor, I connect the handle to the bucket with Hinge Joint.

    upload_2024-1-8_7-54-14.png

    As shown in the figure above, when I run the game, the handle will drop down due to gravity, at this time, my project needs to set the bucket and handle to false due to some special requirement, that is to call SetActive(false), and when I set it to true again, the handle's anchor changes to the position as shown in the figure below, and the handle's position becomes not what is expected, and I don't have any other script to change the anchor, how can I solve the problem?

    upload_2024-1-8_7-54-36.png

    My HingeJoint parameters are as follows, I've tried setting Auto Configure Connected Anchor to false but it doesn't work.

    upload_2024-1-8_7-58-50.png
     
  2. arkano22

    arkano22

    Joined:
    Sep 20, 2012
    Posts:
    2,006