Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Hinge Joint

Discussion in 'Physics' started by LiableDuke, Dec 23, 2019.

  1. LiableDuke

    LiableDuke

    Joined:
    Feb 8, 2018
    Posts:
    33
    i am using a hinge joint for a trap door that opens when you stand on it. But when i use the spring that is on the joint the position of the object is effected by it not, just the rotation. Is there a way to only effect the rotation.


    this is the joint that i am using atm.
    upload_2019-12-23_19-10-27.png
     
  2. Erenquin

    Erenquin

    Joined:
    Apr 9, 2018
    Posts:
    164
    The object with this component also has a rigidbody and a collider.
    As the physics is implied, it could be that the objects gets collided (by another one) and slightly moved.
    Maybe you can try to freeze the position of this object.