I tried to make simple door with hinge joint. I’m just with trouble with that, it can be outpositioned sometimes, and it rotates too much at larger forces (but you all know this problem).
How can I make it better? I made a video comparing HPL2 engine’s door mechanics, and my simple, “done in 10 minutes” version. I just used the “DragRigidbody.js” script.
How should I improve it that door, and fix that position problem?
An image of the door’s HingeJoint component would really help. Try posting it with all drop down menus opened.
EDIT: I had a similar problem when creating a pending bridge. After 1 desperate our I realized I had the anchors pointing on the wrong direction…
Also, I tried a simple angle limiter script, a really simple one.
That’s all:
It can’t be 90° but it can be badly positioned (in case of large force). If it is <0° it goes to <360° of course, so it jumps to 90°, but it’s not the issue, it can be scripted well, I just wrote that simple script for test that rotation/position issue.