# How to rotate an object around any axis if i have just local x and y?

I have just two local axis to rotate a 3D object: X (horizontal) and Y (vertical). How to make from this 2 local axises for example a global Y rotation or a Local Z rotation? What math magic do the trick?

• Cross x and y and you will get your z axis assuming x and y are perpendicular – ChaoSXDemon Sep 30 '17 at 18:56

// May be Y,X instead, depending on your handedness