Appears to fix wind arrow direction.

main
fjc40 8 years ago
parent 81a04c987b
commit 8e6a720558

@ -21,7 +21,7 @@ public class WindCommand extends ObserverCommand {
public WindCommand(MockRace race, MockBoat boat, boolean upwind) {
super(race, boat);
race.addAngularCommand(this);
this.direction = upwind? -1 : 1;
this.direction = upwind? 1 : -1;
}
@Override

@ -93,7 +93,7 @@ public class ArrowController {
*/
private void updateWindBearing(Bearing bearing) {
//Rotate the wind arrow.
arrowStackPane.setRotate(bearing.degrees());
arrowStackPane.setRotate(bearing.degrees() + 180);
}
}
}

Loading…
Cancel
Save