Navigation
Unreal Engine C++ API Reference > Runtime > Engine > AnimEncoding > TimeToIndex
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/AnimEncoding.h |
Include | #include "AnimEncoding.h" |
static float TimeToIndex
&40;
EAnimInterpolationType Interpolation,
int32 NumberOfFrames,
const uint8 &42; FrameTable,
float RelativePos,
int32 NumKeys,
int32 & PosIndex0Out,
int32 & PosIndex1Out
&41;
Remarks
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 The rate at which to interpolate the two keys returned to obtain the final result.
Parameters
Name | Description |
---|---|
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. |