UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FRecordedTransformTrack Struct Reference

#include <RecordedTransformTrack.h>

Public Member Functions

float GetDt () const
 
bool IsTimeValid (float InTime) const
 
int32 FindLastKeyBefore (float InTime) const
 
const FRecordedFrameFindRecordedFrame (float InTime, float InTolerance=UE_SMALL_NUMBER) const
 
FRecordedFrameFindRecordedFrame (float InTime, float InTolerance=UE_SMALL_NUMBER)
 
int32 FindRecordedFrameIndex (float InTime, float InTolerance=UE_SMALL_NUMBER) const
 
void GetFramesForTime (float InTime, const FRecordedFrame *&OutFirst, const FRecordedFrame *&OutSecond) const
 
FTransform GetTransformAtTime (int32 InIndex, float InTime) const
 
bool GetDisabledAtTime (int32 InIndex, float InTime) const
 
bool GetWasActiveInWindow (int32 InIndex, float InBeginTime, float InEndTime) const
 
FVector GetLinearVelocityAtTime (int32 InIndex, float InTime, float SampleWidth=1.0f/120.0f) const
 
FVector GetAngularVelocityAtTime (int32 InIndex, float InTime, float SampleWidth=1.0f/120.0f) const
 

Static Public Member Functions

static CHAOS_API FRecordedTransformTrack ProcessRawRecordedData (const FRecordedTransformTrack &InCache)
 

Public Attributes

TArray< FRecordedFrameRecords
 

Member Function Documentation

◆ FindLastKeyBefore()

int32 FRecordedTransformTrack::FindLastKeyBefore ( float  InTime) const
inline

Finds the index of the key immediately before the provided time. Or the exact frame in the case of an exact time match

◆ FindRecordedFrame() [1/2]

FRecordedFrame * FRecordedTransformTrack::FindRecordedFrame ( float  InTime,
float  InTolerance = UE_SMALL_NUMBER 
)
inline

Find a frame at InTime if available within a specified tolarance of the timestamp

◆ FindRecordedFrame() [2/2]

const FRecordedFrame * FRecordedTransformTrack::FindRecordedFrame ( float  InTime,
float  InTolerance = UE_SMALL_NUMBER 
) const
inline

Find a frame at InTime if available within a specified tolarance of the timestamp

◆ FindRecordedFrameIndex()

int32 FRecordedTransformTrack::FindRecordedFrameIndex ( float  InTime,
float  InTolerance = UE_SMALL_NUMBER 
) const
inline

Find a frame index at InTime if available within a specified tolarance of the timestamp

◆ GetAngularVelocityAtTime()

FVector FRecordedTransformTrack::GetAngularVelocityAtTime ( int32  InIndex,
float  InTime,
float  SampleWidth = 1.0f / 120.0f 
) const
inline

Get an interpolated angular velocity for the specified particle at the provided time - using SampleWidth to pick out a window of interpolation

◆ GetDisabledAtTime()

bool FRecordedTransformTrack::GetDisabledAtTime ( int32  InIndex,
float  InTime 
) const
inline

Get whether a particle is disabled at a provided time

◆ GetDt()

float FRecordedTransformTrack::GetDt ( ) const
inline

◆ GetFramesForTime()

void FRecordedTransformTrack::GetFramesForTime ( float  InTime,
const FRecordedFrame *&  OutFirst,
const FRecordedFrame *&  OutSecond 
) const
inline

Given a time, return either one or two frames. If InTime is exactly on a frame then only that frame is returned. If we are beyond the end of the track only the last is returned. For times in the middle of the track that are not exactly on a frame then the frame before and after the time are returned.

◆ GetLinearVelocityAtTime()

FVector FRecordedTransformTrack::GetLinearVelocityAtTime ( int32  InIndex,
float  InTime,
float  SampleWidth = 1.0f / 120.0f 
) const
inline

Get an interpolated linear velocity for the specified particle at the provided time - using SampleWidth to pick out a window of interpolation

◆ GetTransformAtTime()

FTransform FRecordedTransformTrack::GetTransformAtTime ( int32  InIndex,
float  InTime 
) const
inline

Given a time, get an interpolated transform from the track for a provided particle

◆ GetWasActiveInWindow()

bool FRecordedTransformTrack::GetWasActiveInWindow ( int32  InIndex,
float  InBeginTime,
float  InEndTime 
) const
inline

Given two times, find out if the provided particle was ever active within them

◆ IsTimeValid()

bool FRecordedTransformTrack::IsTimeValid ( float  InTime) const
inline

Validates that the time is within the track timestamp bounds (inclusive)

◆ ProcessRawRecordedData()

FRecordedTransformTrack FRecordedTransformTrack::ProcessRawRecordedData ( const FRecordedTransformTrack InCache)
static

Member Data Documentation

◆ Records

TArray<FRecordedFrame> FRecordedTransformTrack::Records

The documentation for this struct was generated from the following files: