Members
-
duration
-
The total duration of the clip, in milliseconds.
-
looping
-
Defines whether this clip should repeat or not.
-
name
-
The name of the animation clip.
-
numKeyFrames
-
The amount of key frames in this clip.
Methods
-
addKeyFrame(frame)
-
Adds a keyframe. Last keyframe is usually the same pose as the first and serves as an "end marker"
Parameters:
Name Type Description frame
A KeyFrame containing a SkeletonPose
-
getKeyFrame()
-
Returns the key frame with the given index.
-
sortKeyFrames()
-
Sorts the key frames based on their time. Only call this if for some reason the keyframes were added out of order.