I’m building a physics based door and its almost what I want its just a bit Janky in places. It’s meant to work like the doors in the game’s amnesia or visage.
What I have so far is…
A door using a physics constraint that opens at an 80dgree angle so it does not swing both ways.
The player can walk into the door to push it open or closed.
The player can grab the door using a line trace freezing the players ability to look around and then using the mouse to swing the door open or closed.
All that works the problems are when using the line trace to open or close the door the issues are
- Depending on what side of the door I’m on moving the mouse left closes the door to the right and that feels unnatural but it’s fine standing on the other side of the door. Any suggestions to fix that would be greatly appreciated
- If the door is at one of the maximum angles and you continue to close the door in that direction the door sometimes jitters but always swings past its constraints then comes back to place. Is there a way to prevent that? I feel like it’s a setting I’m missing ?
Any advice on these two issues would be fantastic thankyou my code is here below if you need more info please do ask