#include <AnimEncoding.h>
|
| static float | TimeToIndex (float SequenceLength, float RelativePos, int32 NumKeys, EAnimInterpolationType Interpolation, int32 &PosIndex0Out, int32 &PosIndex1Out) |
| |
| static float | TimeToIndex (EAnimInterpolationType Interpolation, int32 NumberOfFrames, const uint8 *FrameTable, float RelativePos, int32 NumKeys, int32 &PosIndex0Out, int32 &PosIndex1Out) |
| |
◆ TimeToIndex() [1/2]
Utility function to determine the two key indices to interpolate given a relative position in the animation
- Parameters
-
| 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. |
- Returns
- The rate at which to interpolate the two keys returned to obtain the final result.
Utility function to determine the two key indices to interpolate given a relative position in the animation
- Parameters
-
| 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. |
- Returns
- The rate at which to interpolate the two keys returned to obtain the final result.
◆ TimeToIndex() [2/2]
|
|
inlinestaticprotectedvirtual |
Handles Byte-swapping incoming animation data from a MemoryReader
- Parameters
-
| CompressedData | The compressed animation data being operated on. |
| MemoryReader | The MemoryReader object to read from. |
| SourceArVersion | The version of the archive that the data is coming from. Handles Byte-swapping outgoing animation data to an array of BYTEs |
| CompressedData | The compressed animation data being operated on. |
| SerializedData | The output buffer. |
| ForceByteSwapping | true is byte swapping is not optional. Decompress all requested rotation components from an Animation Sequence |
| Atoms | The FTransform array to fill in. |
| DesiredPairs | Array of requested bone information |
| DecompContext | The decompression context to use. Decompress all requested translation components from an Animation Sequence |
| Atoms | The FTransform array to fill in. |
| DesiredPairs | Array of requested bone information |
| DecompContext | The decompression context to use. Decompress all requested translation components from an Animation Sequence |
| Atoms | The FTransform array to fill in. |
| DesiredPairs | Array of requested bone information |
| DecompContext | The decompression context to use. Utility function to determine the two key indices to interpolate given a relative position in the animation |
| 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. |
- Returns
- The rate at which to interpolate the two keys returned to obtain the final result.
Utility function to determine the two key indices to interpolate given a relative position in the animation
- Parameters
-
| 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. |
- Returns
- The rate at which to interpolate the two keys returned to obtain the final result.
The documentation for this class was generated from the following file: