Door rotation


I have now started working on a rotating door. I replaced the back wall of the level with two walls, leaving a gap for a door in the middle.

I then put a door frame into the level and made a blueprint class for the door. I made a static mesh component for the door and another for the glass in the door. I then made a timeline for the door's movement, set the initial door rotation to its default and connected everything to the timeline. I feel the timeline was a good way of making the rotation of the door smooth and customisable, whilst also being transferrable to other projects. This allows the opportunity to take the work I have done here and use it in other projects. Attached is a screenshot of the code used.

To open the door on button press I coded that the timeline should be triggered when the button reached a certain relative height. Like the door, a strength of this method is that I can very easily take the work I have done here and put it in other projects I am working on.

In all, the system is working well and I am satisfied with its quality. If I were to do this again, I would want to find a method of making the movement of the button much more smooth as the movement of the button is very stiff.

Leave a comment

Log in with itch.io to leave a comment.