Text this: 3D trajectory tracking of a square wave path.