Esempio n. 1
0
  @Override
  public void update() {
    super.update();

    rotation.z += Main.FIXED_DELTA * speed;
    updateMatrix();
  }
Esempio n. 2
0
  @Override
  public void update() {
    super.update();

    if (enabled) {
      if (Track.getDistance(trackPosition, world.main.game.player.trackPosition) < 0.03F) {
        world.main.game.player.velocity.add(0, 0, 0.5F);

        enabled = false;
        enabledTick = 5F;
        setColor(0x994400);
      }
    } else {
      enabledTick -= Main.FIXED_DELTA;

      if (enabledTick <= 0) {
        setColor(0xFF8803);
        enabled = true;
      }
    }
  }