Structure describing necessary data to record the results of a physics simulation for rigids. 更多...
#include <RecordedTransformTrack.h>
Public 属性 | |
| TArray< bool > | DisabledFlags |
| Per-particle list of whether or not they were disabled on this frame. 更多... | |
| TArray< int32 > | PreviousTransformIndices |
| Maps to the position in the Transforms array of the previous frame that this entry existed. 更多... | |
| TArray< int32 > | TransformIndices |
| After processing, this will map a transform index within this frame out to a body/particle index for the component. 更多... | |
| TArray< FTransform > | Transforms |
| List of transforms recorded for this frame. 更多... | |
Structure describing necessary data to record the results of a physics simulation for rigids.
Primarily for recording the results of a geometry collection simulation for later playback
| TArray<bool> FRecordedFrame::DisabledFlags |
Per-particle list of whether or not they were disabled on this frame.
#BGallagher change this to be event based - expensive on memory and beginframe iterations
| TArray<int32> FRecordedFrame::PreviousTransformIndices |
Maps to the position in the Transforms array of the previous frame that this entry existed.
They can move around as particles either become disabled/enabled or if a particle didn't move since the last frame. This allows us to pick up previous positions for velocities etc.
| TArray<int32> FRecordedFrame::TransformIndices |
After processing, this will map a transform index within this frame out to a body/particle index for the component.
This will map back to where the transform was before processing.
| TArray<FTransform> FRecordedFrame::Transforms |
List of transforms recorded for this frame.
During execution maps one-to-one with the number of particles. This is handed off for processing when written back to the collection. This processing will remove redundant transforms and populate the indices in FRecordedFrame to handle the remapping