- Home /
Hinge joint around two axis
Hey
Im trying to make a plane rotate like in this video. http://www.youtube.com/watch?v=g-T_kXYSBZ8
Im using hinge joint with a rigidbody and Im controlling the tilt with some boxes controlled by the keyboard. The problem is that I cant seem to find out how to rotate it around two axis.
If anyone got an answer, please let me know.
Answer by spinaljack · May 04, 2010 at 05:11 PM
Use one parent object for one axis and place that inside another object for the other axis
Create an empty game object
call it X rotation
Create another empty game object
call it z rotation
put x rotation inside z rotation
put your model inside x rotation, now your model should be 3 levels down in the hierarchy
Attach a script to x rotation game object that only rotates on the x axis
Attach a script to the z rotation game object that only rotates on the z axis
This way you wont get weird twisting and you don't need to use any joints.
Answer by ras8000 · May 05, 2010 at 03:37 PM
Thank you. Could u please specify it. Im not sure how its done. :-)
Your answer
Follow this Question
Related Questions
Attaching a Hinge Joint upon colliding with a rigidbody. 1 Answer
How do I use joints to make floppy physics hair on a character? 2 Answers
Directly Rotate a Hinge? 1 Answer
Converting Javascript to C# 1 Answer
Hinge Joint Limits in C sharp 1 Answer