You would want to set the angle on the u-joint to be at 90 degrees to the driveshaft top-bottom and side-side:
http://www.4crawler.com/4x4/CheapTricks/Driveline-101.shtml#Double-Cardan-Measurements