This sample demonstrates the control of speed and direction of the moving shapes based on the computed distance the cursor covers on the plane.