Navigation
API > API/Plugins > API/Plugins/GeometryCacheUSD > API/Plugins/GeometryCacheUSD/FGeomCacheTrackUsdProxy
- FGeomCacheTrackProxy::FindSampleIndexesFromTime()
- FGeomCacheTrackUsdProxy::FindSampleIndexesFromTime()
References
| Module | GeometryCacheUSD |
| Header | /Engine/Plugins/Importers/USDImporter/Source/GeometryCacheUSD/Public/GeometryCacheUSDSceneProxy.h |
| Include | #include "GeometryCacheUSDSceneProxy.h" |
| Source | /Engine/Plugins/Importers/USDImporter/Source/GeometryCacheUSD/Private/GeometryCacheUSDSceneProxy.cpp |
virtual void FindSampleIndexesFromTime
&40;
float Time,
bool bLooping,
bool bIsPlayingBackwards,
int32 & OutFrameIndex,
int32 & OutNextFrameIndex,
float & InInterpolationFactor
&41;
Remarks
Find the two frames closest to the given time InterpolationFactor gives the position of the requested time slot between the two returned frames. 0.0 => We are very close to OutFrameIndex 1.0 => We are very close to OutNextFrameIndex If bIsPlayingBackwards it will return exactly the same indexes but in the reversed order. The InterpolationFactor will also be updated accordingly
Parameters
| Name | Description |
|---|---|
| Time | (Elapsed)Time to check against |
| bLooping | Whether or not the animation is being played in a loop |
| bIsPlayingBackwards | Whether the animation is playing backwards or forwards |
| OutFrameIndex | The closest frame index that corresponds to the given time |
| OutNextFrameIndex | The frame index that follows OutFrameIndex |
| InterpolationFactor | The interpolation value between the two frame times |