I need a script that will let me grab doors with the mouse and open them or close them and so that the door can’t go past a certain point so that you can only push the door open one way. Anybody wanna help me please?
If it helps I have an empty gameobject set as the hinge of the door for it to rotate around.
If you want a more Physics based door system. I’d play with the Hinge Joint possible the other ones. Then you could create a script that could “Grab” the door and apply force to the “Moved” direction. The moved direction could the with the motion of the mouse or even the movement of the player.