Package dev.kosmx.playerAnim.api.layered
Class KeyframeAnimationPlayer.Axis
java.lang.Object
dev.kosmx.playerAnim.api.layered.KeyframeAnimationPlayer.Axis
- Direct Known Subclasses:
KeyframeAnimationPlayer.RotationAxis
- Enclosing class:
KeyframeAnimationPlayer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetValueAtCurrentTick(float currentValue) Get the current value of this axis.protected final floatCalculate the current value between keyframes
-
Field Details
-
keyframes
-
-
Constructor Details
-
Axis
-
-
Method Details
-
getValueAtCurrentTick
public float getValueAtCurrentTick(float currentValue) Get the current value of this axis.- Parameters:
currentValue- the Current value of the axis- Returns:
- value
-
getValueFromKeyframes
protected final float getValueFromKeyframes(KeyframeAnimation.KeyFrame before, KeyframeAnimation.KeyFrame after) Calculate the current value between keyframes- Parameters:
before- Keyframe beforeafter- Keyframe after- Returns:
- value
-