So I have a system where you can click on a door, and drag the mouse while holding lmb to rotate/open the door. On release if the door is open a physics constraint is activated so the door can swing freely as an open door does. My issue is setting the rotational limit. First off, it’s going to vary based on the position of the door on mouse release. IE, if I open the door to say, 70 degrees and it’s max open rotation is 90, then it should only be able to move 20 degrees in one direction, and 70 in the other. However, given that you can’t really set directional limits this is proving hard to achieve.
I do believe that the solution requires the use of of the “Set Constraint Reference Frame” node, but the documentation on that node is sparse, and trying to get it to work properly is not going great. Does anyone have any insight on how to achieve this? Thanks in advance.