Creates an instance of WebaniInterpolatedAnimation.
Configuration options for the animation.
Whether the animation plays in reverse.
Duration of the animation in milliseconds.
The interpolation function used for the animation.
Getter for the unresolved after state of the object.
Getter for the unresolved before state of the object.
Checks if the animation has completed based on the current time t.
The current time in the animation.
true if the animation is done (i.e., t exceeds or equals the duration of the animation), false otherwise.
Calculates and returns the transformed object at the current frame of the animation.
The time or progress of the animation, typically between 0 and 1.
The current state of the animated object.
Interpolates the progress of the animation based on the time t.
The time or progress of the animation, typically between 0 and 1.
A normalized value between 0 and 1 representing the progress of the animation.
Resolves the animation by creating shallow copies of the objects before and after the animation. The current object is also initialized as a shallow copy of the object before the animation.
Resolves the transforms of the before and after objects to ensure they have the same number of extra transforms.
This function ensures that the animation has a consistent structure when resolving the transforms.
Sets the frame of the animation at time t, updating the transforms and material of the mesh.
The current time in the animation.
The current WebaniMesh object after the frame has been set.
StaticcubicCubic interpolation function.
The start value.
The end value.
The progress of the interpolation.
The interpolated value with cubic easing.
StaticeaseEase-in-out interpolation function.
The start value.
The end value.
The progress of the interpolation.
The interpolated value with ease-in-out easing.
StaticlerpLinear interpolation function.
The start value.
The end value.
The progress of the interpolation.
The interpolated value.
A class representing an animation that interpolates between two states of a mesh object. This extends from
WebaniInterpolatedAnimationand is designed to animateWebaniMeshobjects.