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 I want to limit the angle of Hinge Joint 2d

Discussion in 'Physics' started by KM6611, Jan 20, 2024.

  1. KM6611

    KM6611

    Joined:
    Jun 27, 2018
    Posts:
    12
    The angle of Hinge Joint 2D has been limited. However, when the sphere is dropped, it temporarily falls outside the limited angle range due to collision.

    Is it possible to make sure it never goes out of angle limits?


     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,657
    Allow more solver iterations to be used rather than just using the default. You might never get it absolutely rigid due to how joints are solved in Box2D, especially if the forces are high.

    In your image above, you are in overlap so that's making the situation worse.
     
    KM6611 likes this.