- Home /
3D top down rotation
In making a top-down 3D fighter rotate on it's axis, what is the best way to clamp the rotation and also apply force so that it still moves left/right like a real airplane would?
I am designing a semi-clone game much like 1994's "Raptor" produced by Mountain King. While left/right and up/down movement works, I can't apply rotation without it affecting movement. Is there any way to rotate and keep it from changing it's general movement?
I have tried using a RigidBody to freeze it and it still rotates down and off the map.
Answer by Berenger · Feb 09, 2012 at 01:39 AM
It might come from the position of your pivot. If it's not in the middle, the rotation will be weird. You can fix that by making the object child of a gameobject and place it so the parent is in the middle, then rotate the parent.
I have tried that, and rotation still affects the movement of the object. Basically.. I'm trying to get the effect of the wings being tilted when it moves left/right, without using sprites.