That's such a cool machine. There is probably some sort of camera system which can detect the orientation. I have seen this on other systems like this on tv. Only these ones built engines. They had a robotic arm and the camera would detect and locate certain points on say the engine block. The machine would be able to pick and place a part exactly lined up. I'm not sure how it works, but it is pretty cool.