Ejemplo n.º 1
0
 public static Vector2 MouseMoveToWorldCoordinates(this AWViewport viewport, Point oldMouseLocation, Point newMouseLocation, float z)
 {
     var oldPos = viewport.ToPos(oldMouseLocation.ToVector2(), z);
     var nowPos = viewport.ToPos(newMouseLocation.ToVector2(), z);
     return nowPos - oldPos;
 }