Urho3D
Public Member Functions | Public Attributes | List of all members
Urho3D::AnimationTrack Struct Reference

Skeletal animation track, stores keyframes of a single bone. @nocount. More...

#include </home/runner/work/rurho3d.github.io/rurho3d.github.io/urho3d_repo/Source/Urho3D/Graphics/Animation.h>

Public Member Functions

 AnimationTrack ()
 Construct.
 
void SetKeyFrame (i32 index, const AnimationKeyFrame &keyFrame)
 Assign keyframe at index.
 
void AddKeyFrame (const AnimationKeyFrame &keyFrame)
 Add a keyframe at the end.
 
void InsertKeyFrame (i32 index, const AnimationKeyFrame &keyFrame)
 Insert a keyframe at index.
 
void RemoveKeyFrame (i32 index)
 Remove a keyframe at index.
 
void RemoveAllKeyFrames ()
 Remove all keyframes.
 
AnimationKeyFrameGetKeyFrame (i32 index)
 Return keyframe at index, or null if not found.
 
i32 GetNumKeyFrames () const
 Return number of keyframes.
 
bool GetKeyFrameIndex (float time, i32 &index) const
 Return keyframe index based on time and previous index. Return false if animation is empty.
 

Public Attributes

String name_
 Bone or scene node name.
 
StringHash nameHash_
 Name hash.
 
AnimationChannels channelMask_ {}
 Bitmask of included data (position, rotation, scale).
 
Vector< AnimationKeyFramekeyFrames_
 Keyframes.
 

Detailed Description

Skeletal animation track, stores keyframes of a single bone. @nocount.


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