new AnimationClip()
- See:
Properties:
Name | Type | Description |
---|---|---|
duration |
The total duration of the clip, in milliseconds. |
|
name |
The name of the animation clip. |
|
looping |
Defines whether this clip should repeat or not. |
Members
-
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.