My Plane is Rotating Incorrectly

I am trying to create a military game and I want to add a plane. I found a good plane controller script butt when I try to rotate the pitch it also rotates the y and z axis and causes the plane to rotate diagonally. I was wondering if this could be solved and thought this would be the best place to ask so any help would be appreciated.

I’m wondering exactly what qualities make you describe it as a “good plane controller” if it doesn’t work… :slight_smile: Anyway, to me it sounds like it either has a bug or you set it up wrong.

Here’s how to find out: time to start debugging!

By debugging you can find out exactly what your program is doing so you can fix it.

Use the above techniques to get the information you need in order to reason about what the problem is.

You can also use Debug.Log(...); statements to find out if any of your code is even running. Don’t assume it is.

Once you understand what the problem is, you may begin to reason about a solution to the problem.

Here is what I consider a “good plane controller.”

Discussion video:

And here’s a young fellow who haxed it up a bit and
added flaps and brakes and power control… SO COOL!

Appstore: ‎Pilot Kurt on the App Store
GooglePlay: https://play.google.com/store/apps/details?id=com.plbm.flight1
Android TV: https://play.google.com/store/apps/details?id=com.plbm.flight1tv

Youtube playlist: https://www.youtube.com/playlist?list=PLTzufax_A179M51bQgMFDJ7y9Gjp9kOVR

1 Like