Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.