|
void | Sample (float time, float duration, bool isLooped, unsigned &frameIndex, Transform &transform) const |
| Sample value at given time.
|
|
bool | IsLooped (float positionThreshold=0.001f, float rotationThreshold=0.001f, float scaleThreshold=0.001f) const |
| Return whether the track is looped, i.e. the first and the last keyframes have the same value.
|
|
void | SortKeyFrames () |
| Sort keyframes by time.
|
|
void | AddKeyFrame (const KeyFrame &keyFrame) |
| Append keyframe preserving container order.
|
|
void | RemoveKeyFrame (unsigned index) |
| Remove a keyframe at index.
|
|
void | RemoveAllKeyFrames () |
| Remove all keyframes.
|
|
KeyFrame * | GetKeyFrame (unsigned index) |
| Return keyframe at index, or null if not found.
|
|
unsigned | GetNumKeyFrames () const |
|
void | GetKeyFrames (float time, float duration, bool isLooped, unsigned &frameIndex, unsigned &nextFrameIndex, float &blendFactor) const |
| Return keyframes for interpolation.
|
|
bool | GetKeyFrameIndex (float time, unsigned &index) const |
| Return keyframe index based on time and previous index as hint. Return false if animation is empty.
|
|
Skeletal animation track, stores keyframes of a single bone.