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? :)
asked Aug 08 '16 at 01:21 PM in Blueprint Scripting
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.
answered Aug 08 '16 at 03:32 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here