Help me rotate an airplane

Hi all!
I have a problem rotateing a object. I wan’t to rotate i airplane in roll, pitch and course. The problem now is that when I wrote 3 separate rotatefunctions the plane flips and jumps when I change between roll, pitch and course. But it rotate nice and smooth when I only rotate it round one axis at the time.

I hope you understand my problem, and I’m greatful for any answer.

AerotechTelub, Sweden


Rotating an object about multiple axes can/will cause problems if you rotate them in the wrong order. I suggest you have a look at the following article, .
It’s a small article about euler angles, why problems occur, and how to solve them. And the author uses a plane for an example.

Hope that will help some.