How can I make a door asset?

Hi,

I’m new in Unreal Engine 4. I want to make a physics door asset which I can place at anywhere. The door should open when player pushes it. This doesn’t need to close.

Secondly I will want to make a door using blueprint. It should also be a re useable asset. This door opens and closes with user inputs.

Please suggest me how can I achieve them. First I would like to make a physics door.

Thanks

There is a regular door in the Content Examples project, and a tutorial for a sliding door in the youtube tutorials for level design.

Thanks for the reply. First of all, I want to make one side rotating door. Not a sliding door. Another thing is, I want the door to be a physics asset. For example it will open when player hits it. Like in the max payne.

In UDK, there was a hinge actor. But I can’t find any physics asset editor or any other place where I can attach a hinge actor to my door model.

You need to make your door a skeletal mesh in your modeling program. Place two bones along the axis of the hinge, the parent bone will be fixed in space while the second bone will be weighted to your door and will be the actual hinge. In the skeletal mesh editor, set the hinge bone to use skeletal physics instead of animations. Create a physics asset for your skeletal mesh (right click on your skeletal mesh for the create window) and then edit the joint between the two bones to have rotation only with a spring return and finally change the properties of the collision box attached to your hinge bone to use simulation.

Follow this tutorial and you can figure it out:

There is a door with a hinge that opens when the player hits it in the Content Examples Project.

Hi Sohan,

There still is a hinge actor. You can find this with the Physics Constraints Actor.

Place this in your scene between your door and the wall > Select the Door for constraint one and the frame for constraint to > Change the Joint preset to Hinge > and lock all the angular limits with exception of the Angular Swing1 Motion. Use either limited and set the limits or leave it at Free.

I hope this helps and if you have any questions feel free to ask! :slight_smile:

Tim

Really thanks guis, you really give me some answers. I will try them out and if I face any problems I will ask again here.

One more thing I want to know. How do you transform an object in it’s world position? For example, I want to rotate a box on it’s world position, not local position. I have seen an option, after rotation there is an arrow where I see the Local and World options. But I can’t select the world. Every time I click on world, it comes back to local again. What’s wrong here?

Here is a simple door I made with blueprint where the door is opened when you are in a specific proximity and you press ‘E’, Pressing ‘E’ again will close the door.

Hope that helps, Let me know if you have any questions.

Blueprint just works fine. But when I place the door in other direction than 0:0:0 deg, the weird thing happens. The door opens and closes at the 0 direction to the world. Is there any solution for that?