The crankshaft and connecting rods of an engine convert the rectilinear motion of the pistons to rotary motion of the flywheel.