Navigation
Unreal Engine C++ API Reference > Plugins > ChaosCaching > Chaos
References
Module | ChaosCaching |
Header | /Engine/Plugins/Experimental/ChaosCaching/Source/ChaosCaching/Public/Chaos/ChaosCache.h |
Include | #include "Chaos/ChaosCache.h" |
Syntax
USTRUCT&40;&41;
struct FParticleTransformTrack
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | bDeactivateOnEnd | If this flag is set true, the particle represented by this track deactives on the final keyframe. |
![]() ![]() |
float | BeginOffset | The offset from the beginning of the cache that holds this track that the track starts |
![]() ![]() |
TArray< float > | KeyTimestamps | The above raw track is just the key data and doesn't know at which time those keys are placed, this is a list of the timestamps for each entry in TransformTrack |
![]() ![]() |
FRawAnimSequenceTrack | RawTransformTrack | List of all the transforms this cache cares about, recorded from the simulated transforms of the particles observed by the adapter that created the cache |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FTransform | Evaluate
(
float InCacheTime, |
Evaluates the transform track at the specified time, returning the evaluated transform. |
![]() ![]() |
FTransform | EvaluateAt
(
int32 Index |
Evaluate the acche at a sepcific index this assumes that index is within the range of valid keys |
![]() ![]() |
const float | GetBeginTime () |
|
![]() ![]() |
const float | GetDuration () |
|
![]() ![]() |
const float | GetEndTime () |
|
![]() ![]() |
const int32 | GetNumKeys () |
|
![]() ![]() |
int32 | GetUpperBoundEvaluationIndex
(
float InCacheTime |
Find the index the key where timestamp is directly above InCacheTime returned value is garanteed to be within the range of keys if there's any in the case there's no key in the track, 0 is returned |