Exemple #1
0
 public override void OnMouseUp(MouseEventArgs e)
 {
     moving = null;
 }
Exemple #2
0
 public override void OnMouseDown(MouseEventArgs e)
 {
     Vector3 world = view.ScreenToWorld(new Vector3(e.X, e.Y, 0));
             if (view.simulation != null)
                 foreach (Common.Motion.Object o in view.simulation.All)
                     if (o.Bounding.Cull(new Common.Bounding.Point(world)) == Common.Bounding.ECull.Intersect)
                     {
                         moving = o;
                         view.Invalidate();
                     }
 }