It's difficult to explain my idea to rotate it... Here is a picture of a triangle with the vectors:


before the second vec_to_angle, panDir gets crossed (the violet vector). Because of this, the roll and tilt values somehow get "switched". Further more, the vec_to_angle function does not modify the roll value. I'm not the best at rotation stuff too, but this was the only way I got it tow work... I believe there is a better way to do this.


Last edited by krial057; 01/29/12 12:43.