Created
May 28, 2017 13:27
-
-
Save russelarms/5ccbcda7ae1f8f6ff59498b0912d0061 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scene.page(2).step(2) | |
.createAnimation(0, 90) | |
.setDuration(0.25f) | |
.setListener(value -> submarine.setRotation(value)); | |
scene.page(2).step(3) | |
.createAnimation(90, 180) | |
.setStartThreshold(0.25f) | |
.setDuration(0.25f) | |
.setListener(value -> submarine.setRotation(value)); | |
scene.page(2).step(4) | |
.createAnimation(180, 270) | |
.setStartThreshold(0.5f) | |
.setListener(value -> submarine.setRotation(value)) | |
.setDuration(0.25f); | |
scene.page(2).step(5) | |
.createAnimation(270, 360) | |
.setStartThreshold(0.75f) | |
.setDuration(0.25f) | |
.setListener(value -> submarine.setRotation(value)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment