copy
Creates a new AnimationState from a given AnimationState. This function allows some of the fields to be different in the new AnimationState.
Return
A new AnimationState instance copied from the given instance, with some fields optionally altered
Parameters
value of the AnimationState, using the value of the given AnimationState by default
velocity of the AnimationState, using the velocity of the given AnimationState by default.
last frame time of the animation, same as the given AnimationState by default
the time that the animation finished successfully, AnimationConstants.UnspecifiedTime until then. Default value is the same as the given AnimationState.
whether the AnimationState is currently being updated by an animation. Same as the given AnimationState by default
Creates a new AnimationState of Float value type from a given AnimationState of the same type. This function allows some of the fields to be different in the new AnimationState.
Return
A new AnimationState instance copied from the given instance, with some fields optionally altered
Parameters
value of the AnimationState, using the value of the given AnimationState by default
velocity of the AnimationState, using the velocity of the given AnimationState by default.
last frame time of the animation, same as the given AnimationState by default
the time that the animation finished successfully, same as the given AnimationState by default.
whether the AnimationState is currently being updated by an animation. Same as the given AnimationState by default