◆ CreateKeyFrame()
cKeyFrame* hpl::cAnimationTrack::CreateKeyFrame |
( |
float |
afTime | ) |
|
Creates a new key frame. These should be added in sequential order.
- Parameters
-
afTime | the time for the key frame. |
◆ ApplyToNode()
void hpl::cAnimationTrack::ApplyToNode |
( |
cNode3D * |
apNode, |
|
|
float |
afTime, |
|
|
float |
afWeight |
|
) |
| |
Apply the animation to a node. The method uses Node->AddXXX() so Update matrix must be called for the transformation to be applied.
- Parameters
-
apNode | The node with it's base pose |
afTime | The time at which to apply the animation |
afWeight | The weight of the animation, a value from 0 to 1. |
◆ GetInterpolatedKeyFrame()
cKeyFrame hpl::cAnimationTrack::GetInterpolatedKeyFrame |
( |
float |
afTime | ) |
|
Get a KeyFrame that contains an interpolated value.
- Parameters
-
afTime | The time from wihcih to create the keyframe. |
◆ GetKeyFramesAtTime()
float hpl::cAnimationTrack::GetKeyFramesAtTime |
( |
float |
afTime, |
|
|
cKeyFrame ** |
apKeyFrameA, |
|
|
cKeyFrame ** |
apKeyFrameB |
|
) |
| |
Gets key frames between for a specific time.
- Parameters
-
afTime | The time |
&apKeyFrameA | The frame that is equal to or before time |
&apKeyFrameB | The frame that is after time. |
- Returns
- Weight of the different frames. 0 = 100% A, 1 = 100% B 0.5 = 50% A and 50% B
The documentation for this class was generated from the following file: