The position of the pitcher's feet determine if he is in the windup position or set position. A pitcher has a pivot foot (right foot for right-handers) and a "free foot" (left foot for right-handers).
When pitching from the windup, the pitcher's pivot foot must be in contact with the pitching rubber. His free foot (also called his non-pivot foot) must be anywhere on or behind a line that passes thru the front edge of the pitching rubber.
When pitching from the set, the pitcher's pivot foot must in contact with (or immediately in front of) the pitching rubber. His free foot must be in front of the pitching rubber.