Door gets stuck after adding a second constraint, dangles into frame with only one constraint

Im adding a standard door from starter content into a doorframe from same. I want it to open when i come in contact with it physically opening when i push it and go back to being closed when im not touching it anymore.

When i try to add a physical constraint as a hinge using the frame as point 1 and the door as point two. When I only add 1 it dangles off the hinge through the frame and floor, if I add another hinge i cant move the door at all…

Help please? :slight_smile:

Seems like you enable physics simulation. Having one hinge and dangling is realistic.
check:

  • Enable physics on your charcter
  • check mass

If you have a first person pawn you may not have any mass :smiley:

Instead of hinges, add a rotational constraint to it.

Attach something called a PhysicsConstraintComponent

Input the name of the actor of the door into Constraint Component 1

Lock/Free the axes until you get the result you want. For example, if you free X,Y and lock Z the actor can not move up and down. If you constrain them all it can not move in any direction, only rotate(I believe).

Hope this helps.