Rebel Fork Framework
Urho3D::AnimationTrack Struct Reference

#include <Urho3D/Graphics/AnimationTrack.h>

Inheritance diagram for Urho3D::AnimationTrack:
Urho3D::KeyFrameSet< AnimationKeyFrame >

Public Member Functions

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.
 
- Public Member Functions inherited from Urho3D::KeyFrameSet< AnimationKeyFrame >
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.
 
KeyFrameGetKeyFrame (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.
 

Public Attributes

ea::string name_
 Bone or scene node name.
 
StringHash nameHash_
 Name hash.
 
AnimationChannelFlags channelMask_ {}
 Bitmask of included data (position, rotation, scale).
 
float weight_ {1.0f}
 Weight of the track.
 
- Public Attributes inherited from Urho3D::KeyFrameSet< AnimationKeyFrame >
ea::vector< KeyFramekeyFrames_
 

Additional Inherited Members

- Public Types inherited from Urho3D::KeyFrameSet< AnimationKeyFrame >
using KeyFrame = AnimationKeyFrame
 

Detailed Description

Skeletal animation track, stores keyframes of a single bone.


The documentation for this struct was generated from the following files: