I have a curved path generated with the line tool followed by the Zig Zag filter to which I'd like to snap a shape I've drawn. I would like it that the shape can be dragged only along the line (like a carriage on a train track), and that the shape be rotated as it's dragged to be tangental to the curvature of the path. The shape itself is, at its most basic, a styled rectangle, and the effect I'm trying to achieve would be the result of locking the vertical-middle left-most and right-most anchor points to the curve simultaneously.
Is it possible to do this in Illustrator CS5? Many thanks in advance!