Error in calculation rotation of static mesh for z axis