 A prismatic joint can be formed with a polygonal cross-section to resist rotation.See for example the dovetail joint and linear bearings.The relative position of two bodies connected by a prismatic joint is defined by the amount of linear slide of one relative to the other one.