private void mainAreaMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_mainAreaMouseMoved
        if (isJoined == 1) {
            MoveTo cmd = new MoveTo();

            cmd.areaId = 1;
            cmd.objectId = 3;
            cmd.maxAcceleration = 0;
            cmd.maxSpeed = 200;
            cmd.targetPosition.setX(evt.getX());
            cmd.targetPosition.setY(evt.getY());
            cmd.maxAngleSpeed = 0;
            try {
                outStream.write(cmd.getBytes());
                outStream.flush();
            } catch (Exception ex) {
                System.out.println(ex.getMessage());
            }
        }

    }//GEN-LAST:event_mainAreaMouseMoved