Double-acting cylinders with ball joint