Java 类com.badlogic.gdx.scenes.scene2d.actions.RotateToAction 实例源码

项目:LiftOffGame    文件:GameScreen.java   
public void rocketCrashAnimation() {
  MoveToAction action = Actions.action(MoveToAction.class);
      action.setPosition(420, 0);
      action.setDuration(1f);
      game.rocket.addAction(action);

      RotateToAction action2 = Actions.action(RotateToAction.class);
      action2.setRotation(-180f);
      action2.setDuration(1f);
      game.rocket.addAction(action2);
}
项目:bloblines    文件:MenuGroup.java   
private void updateRotation() {
    RotateToAction rotation = new RotateToAction();
    rotation.setDuration(ROTATION_DURATION);
    rotation.setRotation(rotationIndex * elementsAngle);
    addAction(rotation);
    updateDescWindow(null);
}