If i create my a “physical door”, how can the door stop rotating if its in the closed position? And that its only rotating in one way .
Use a timeline, they’re great for moving things like a door.
For example, when you walk into the trigger to open the door, you’d play a timeline that updates the rotation of the door. You can use this to ‘open’ and ‘close’ the door in whichever way you choose.
But then i can’t control the rotation with my mouse.
I dont know how i can do this with a timeline.
I wanted a door that rotates when i press the left mous button and drag it to the site. So that i can control the rotation.
I have created a “physic gun” (Unreal Engine 4 Tutorial: Horror Game - Part 8d "Physics Door" - YouTube), then i added 2 constrain to the door and now i can rotate it with the player rotation.
- the player rotates too(what i dont want)
- the door rotates in all directions
- the door doesnt stop when it is in the door frame like it is closed
Hey syndexDE-
If you want to control the door with your mouse (mouse click, mouse hover, etc.) you can use the appropriate event and wire into a timeline like Mookiez suggested. If you are still having problems, please explain exactly what you are trying to accomplish and we can provide other solution options.
i have it now. I tested different angles of the constrain… but thanks for your help