Handles interpolation and data retrieval for a single animation track.
More...
#include <Animation/CAnimationTrack.h>
|
| void | getFrameData (f32 frame, core::vector3df &position, core::vector3df &scale, core::quaternion &rotation) |
| | Calculates the interpolated PRS data for a specific frame.
|
| CAnimationData * | getAnimData () |
| | Gets the underlying animation data.
|
|
void | clearAllKeyFrame () |
| | Clears all keyframe search hints and resets the track.
|
| void | setAnimationData (CAnimationData *data) |
| | Sets the source animation data for this track.
|
| CAnimationData * | getFrameData () |
| | Gets the underlying animation data.
|
|
| static void | quaternionSlerp (core::quaternion &result, core::quaternion q1, core::quaternion q2, float t) |
| | Static utility for spherical linear interpolation between quaternions.
|
|
|
std::string | Name |
| | The name of the track.
|
|
bool | HaveAnimation |
| | Whether this track currently has animation data.
|
Handles interpolation and data retrieval for a single animation track.
◆ getAnimData()
◆ getFrameData() [1/2]
◆ getFrameData() [2/2]
| void Skylicht::CAnimationTrack::getFrameData |
( |
f32 | frame, |
|
|
core::vector3df & | position, |
|
|
core::vector3df & | scale, |
|
|
core::quaternion & | rotation ) |
Calculates the interpolated PRS data for a specific frame.
- Parameters
-
| frame | Time in seconds. |
| position | [out] Interpolated position. |
| scale | [out] Interpolated scale. |
| rotation | [out] Interpolated rotation. |
◆ quaternionSlerp()
| void Skylicht::CAnimationTrack::quaternionSlerp |
( |
core::quaternion & | result, |
|
|
core::quaternion | q1, |
|
|
core::quaternion | q2, |
|
|
float | t ) |
|
static |
Static utility for spherical linear interpolation between quaternions.
- Parameters
-
| result | Resulting quaternion. |
| q1 | Start quaternion. |
| q2 | End quaternion. |
| t | Interpolation factor (0 to 1). |
◆ setAnimationData()
| void Skylicht::CAnimationTrack::setAnimationData |
( |
CAnimationData * | data | ) |
|
|
inline |
Sets the source animation data for this track.
- Parameters
-
| data | Pointer to animation data. |
The documentation for this class was generated from the following file: