I can rotate hollow logs how do I rotate buildings?

I can rotate hollow logs how do I rotate buildings? When i pick up a log I can drag the image and click to set it down exactly where i want it. Houses and things on the other hand seem to randomly rotate depending on if theres a bump in the ground or not and I can't figure out which button controls the rotation. How do you position things the way you want?