- Home /
How to open doors on a hinge like a real door?
How would I attach the door to another object at a hinge that rotates. Also I would like to have the door open slowly with a single keypress (left cursor) within about arms distance away. I this possible?
You are not supposed to double post questions, I will answer your question in a second.
Can you accept my(I am $$anonymous$$enny Powell) answer please?
guys i really did not understand anything from the links provided. I'm an architect, i just want my doors to be opened and closed thats all. I import them from revit to unity. I hope you guys can give me some instructions to open and close them.
Answer by TheVectorHunter · Aug 13, 2012 at 05:27 AM
Go to this answer:
http://answers.unity3d.com/questions/300249/scripting-make-thing-repeating-help.html
Answer by DaveA · Aug 14, 2012 at 12:31 AM
Click around here: http://docs.unity3d.com/Documentation/ScriptReference/HingeJoint.html
Anyone can post a answer whether you already did or not...
Answer by Rad-Coders · Oct 15, 2015 at 08:40 AM
Add a Hinge joint and apply a one time force and if the door exceeds a certain angle stop applying the force.
It's a quite simple answer, you wouldn't have to much trouble implementing it.
Your answer
Follow this Question
Related Questions
Raycast to Terrain (Conditional Statements) 1 Answer
Mouse Dragging/Throwing Objects with the Mouse Like in Black & White (The Game) 1 Answer
Raycasting fail 1 Answer
(C#) 2D Raycast wrong direction 0 Answers
Add inaccuracy to a raycast 1 Answer