Sit on the bike and have it upright and have a helper measure the distance from the floor to the center of the headlight lens.
Pick a flat wall where you can locate the bike so the headlight is 17 feet from the wall. Place a horizontal mark on the wall two inches lower than the height of the center of the headlight.
Adjust the headlight vertically so that the flat top of the beam is just up to that line (marked two inches down at 17 feet).
Horizontal adjustment should center the beam ahead of the line of the bike.