#include <Urho3D/Graphics/AnimationTrack.h>
|
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.
|
|
|
ea::string | name_ |
| Bone or scene node name.
|
|
StringHash | nameHash_ |
| Name hash.
|
|
AnimationChannelFlags | channelMask_ {} |
| Bitmask of included data (position, rotation, scale).
|
|
float | positionWeight_ {1.0f} |
| Weight of the position channel.
|
|
float | rotationWeight_ {1.0f} |
| Weight of the rotation channel.
|
|
float | scaleWeight_ {1.0f} |
| Weight of the scale channel.
|
|
ea::vector< KeyFrame > | keyFrames_ |
|
Skeletal animation track, stores keyframes of a single bone.
The documentation for this struct was generated from the following files: