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.

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.

Thank you. Could u please specify it. Im not sure how its done. :-)