Class AnimationUtils

java.lang.Object
com.jme3.animation.AnimationUtils

public class AnimationUtils extends Object
  • Method Details

    • clampWrapTime

      public static float clampWrapTime(float time, float duration, LoopMode loopMode)
      Clamps the time according to duration and loopMode
      Parameters:
      time - the unclamped time value (in seconds)
      duration - the animation's duration (in seconds)
      loopMode - the animation's looping behavior (not null)
      Returns:
      the clamped time (in seconds)