# How to apply rotations for seperate object's axis?

I have recently stuck up on problem where I have to set object's x and y rotation to 0.0, but keep z rotation equal to the current one (best way- don't affect at all). How to do that?

I was thinking of something similar to that what I used for other data(own.worldOrientation[0] = 0.0), but it didn't appear to work!

cont = bge.logic.getCurrentController()