Cams
A CAM changes the input motion, which is usually rotary motion (a rotating motion), to a reciprocating motion of the follower. They are found in many machines and toys.
Swash Plate Cam
A swash plate cam is usually a disc that rotates around a shaft. The disc is set at an angle so that the follower moves up and down as the disc rotates.