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.
First VR project- Ben Jeffreys
More posts
- End productMay 03, 2023
- Shooting galleryApr 30, 2023
- Menu systemApr 27, 2023
- Engine changeApr 25, 2023
- Door buttonApr 14, 2023
- Smooth locomotion pt1Feb 17, 2023
- Task assignmentNov 10, 2022
- ConceptOct 30, 2022
Leave a comment
Log in with itch.io to leave a comment.