Gears machine element creates a gear mesh. You can create a gear, which consists of a rack and pinion.
About Gears Creating Gears