Chapter 17 ■ i3D Game Square SeleCtion: uSinG the piCkreSult ClaSS with 3D moDelS
Go back into your createAnimationAssets() method and remove the .setFromAngle() and
.setToAngle() method calls from the rotSpinner Animation object, resulting in the following Java code, as
shown in Figure 17-17:
private void createAnimationAssets() {
rotGameBoard = new RotateTransition(Duration.seconds(5), gameBoard);
rotGameBoard.setAxis(Rotate.Y_AXIS);
rotGameBoard.setCycleCount(1);
rotGameBoard.setRate(0.5);
rotGameBoard.setInterpolator(Interpolator.LINEAR);
rotSpinner = new RotateTransition(Duration.seconds(5), spinner);
rotSpinner.setAxis(Rotate.Y_AXIS);
rotSpinner.setCycleCount(1);
rotSpinner.setRate(0.5);
rotSpinner.setInterpolator(Interpolator.LINEAR);
}
Figure 17-17. Remove rotSpinner.setFromAngle() and rotSpinner.setToAngle() method calls in
createAnimationAssets