Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/AnimEncoding
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static float TimeToIndex
(
float SequenceLength, |
Utility function to determine the two key indices to interpolate given a relative position in the animation | AnimEncoding.h | |
static float TimeToIndex
(
EAnimInterpolationType Interpolation, |
Utility function to determine the two key indices to interpolate given a relative position in the animation | AnimEncoding.h |
TimeToIndex(float, float, int32, EAnimInterpolationType, int32 &, int32 &)
Description
Utility function to determine the two key indices to interpolate given a relative position in the animation
Utility function to determine the two key indices to interpolate given a relative position in the animation
| Name | TimeToIndex |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/AnimEncoding.h |
| Include Path | #include "AnimEncoding.h" |
static float TimeToIndex
(
float SequenceLength,
float RelativePos,
int32 NumKeys,
EAnimInterpolationType Interpolation,
int32 & PosIndex0Out,
int32 & PosIndex1Out
)
The rate at which to interpolate the two keys returned to obtain the final result.
Parameters
| Name | Remarks |
|---|---|
| SequenceLength | The length of the anim sequence |
| RelativePos | The relative position to solve in the range [0,1] inclusive. |
| NumKeys | The number of keys present in the track being solved. |
| Interpolation | The Interpolation type of the sequence |
| PosIndex0Out | Output value for the closest key index before the RelativePos specified. |
| PosIndex1Out | Output value for the closest key index after the RelativePos specified. |
| Seq | The UAnimSequence container. |
| RelativePos | The relative position to solve in the range [0,1] inclusive. |
| NumKeys | The number of keys present in the track being solved. |
| PosIndex0Out | Output value for the closest key index before the RelativePos specified. |
| PosIndex1Out | Output value for the closest key index after the RelativePos specified. |
TimeToIndex(EAnimInterpolationType, int32, const uint8 *, float, int32, int32 &, int32 &)
Description
Utility function to determine the two key indices to interpolate given a relative position in the animation
Utility function to determine the two key indices to interpolate given a relative position in the animation
| Name | TimeToIndex |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/AnimEncoding.h |
| Include Path | #include "AnimEncoding.h" |
static float TimeToIndex
(
EAnimInterpolationType Interpolation,
int32 NumberOfFrames,
const uint8 * FrameTable,
float RelativePos,
int32 NumKeys,
int32 & PosIndex0Out,
int32 & PosIndex1Out
)
The rate at which to interpolate the two keys returned to obtain the final result.
Parameters
| Name | Remarks |
|---|---|
| Interpolation | The Interpolation type of the sequence |
| NumberOfFrames | The number of frames in the original sequence |
| FrameTable | The frame table containing a frame index for each key. |
| RelativePos | The relative position to solve in the range [0,1] inclusive. |
| NumKeys | The number of keys present in the track being solved. |
| PosIndex0Out | Output value for the closest key index before the RelativePos specified. |
| PosIndex1Out | Output value for the closest key index after the RelativePos specified. |
| Seq | The UAnimSequence container. |
| FrameTable | The frame table containing a frame index for each key. |
| RelativePos | The relative position to solve in the range [0,1] inclusive. |
| NumKeys | The number of keys present in the track being solved. |
| PosIndex0Out | Output value for the closest key index before the RelativePos specified. |
| PosIndex1Out | Output value for the closest key index after the RelativePos specified. |