/// <summary>
 /// Called when mouse is clicked in world control.
 /// </summary>
 private void WorldControl_MouseDown(object sender, MouseEventArgs e)
 {
     // Start deformation
     if (e.Button == MouseButtons.Left &&
         currentTerrainProxy != null &&
         terrainEditMode)
     {
         QuadTerrainComponent.TerrainIntersectionData pi = currentTerrainProxy.Component.PointerIntersection;
         if (pi.Distance != null)
         {
             DeformStart(e.X, e.Y);
         }
     }
 }
 /// <summary>
 /// Called whenever World Control ticks, before scene is presented.
 /// </summary>
 private void WorldControl_OnTick(object sender, EventArgs e)
 {
     if (currentTerrainProxy != null && terrainEditMode)
     {
         // Get current pointer intersection
         QuadTerrainComponent.TerrainIntersectionData pi = currentTerrainProxy.Component.PointerIntersection;
         if (pi.Distance != null)
         {
             // Position cursor
             terrainEditor1.SetCursorPosition(pi.MapPosition.X, pi.MapPosition.Y);
         }
         else
         {
             // Clear cursor
             terrainEditor1.ClearCursorPosition();
         }
     }
 }