Wind arrow follows wind data

#story[1276]
This commit is contained in:
Zhi You Tan
2017-09-28 14:37:46 +13:00
parent d3e8a21d2f
commit 22fbb529ef
4 changed files with 36 additions and 5 deletions
@@ -215,10 +215,10 @@ public class RaceViewController extends Thread implements ImportantAnnotationDel
e.printStackTrace();
}
windCell.init(player);
windCell.setCamera(gameView.getView().getCamera());
gameView.getView().cameraProperty()
.addListener((obs, oldVal, newVal) -> windCell.setCamera(newVal));
System.out.println(windCell);
windArrowVBox.getChildren().add(windCell.getAssets());
}