View3D can untrack objects and zoom in different modes

- updateDistance zooms between 0 and infinity
- Camera switches from third person to bird's eye when reaching a set distance
- Only one subject can be tracked at a time

#story[1190]
This commit is contained in:
Connor Taylor-Brown
2017-09-08 14:21:03 +12:00
parent 23eabed3ff
commit 1efec06bdc
2 changed files with 59 additions and 9 deletions
@@ -225,6 +225,10 @@ public class RaceController extends Controller {
trackBoat.start();
}
view3D.updatePivot(new Translate(250, 0, 210));
view3D.setOnScroll(e -> {
view3D.updateDistance(e.getDeltaY());
});
}