11#include "RecordedTransformTrack.generated.h"
20 , AccumulatedImpulse(
FVector(0.f))
24 , AngularVelocity1(
FVector(0.f))
25 , AngularVelocity2(
FVector(0.f))
183 return ::GetTypeHash(
Other.ParticleIndex);
188 return A.ParticleIndex ==
B.ParticleIndex;
254 Transforms.Reset(
InNum);
255 DisabledFlags.Reset(
InNum);
259 Transforms.AddDefaulted(
InNum);
260 DisabledFlags.AddDefaulted(
InNum);
281 return Records.Num() > 1 ? Records[1].
Timestamp - Records[0].Timestamp : 0;
289 if(Records.Num() > 1)
306 const int32 NumKeys = Records.Num();
310 float LastKeyTime = Records[NumKeys - 1].Timestamp;
326 for(
int32 KeyIndex = 1; KeyIndex < NumKeys; ++KeyIndex)
328 const float CurrTime = Records[KeyIndex].Timestamp;
377 const int32 NumFrames = Records.Num();
378 for(
int32 FrameIndex = 0; FrameIndex < NumFrames; ++FrameIndex)
440 return Records.Last().Transforms[
InIndex];
511 if(Records.Num() == 0)
532 if(Records.Num() == 0)
@ INDEX_NONE
Definition CoreMiscDefines.h:150
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define MAX_flt
Definition NumericLimits.h:29
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UENUM(...)
Definition ObjectMacros.h:749
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define UE_SMALL_NUMBER
Definition UnrealMathUtility.h:130
uint32 Offset
Definition VulkanMemory.cpp:4033
static UE_FORCEINLINE_HINT bool IsNearlyEqual(float A, float B, float ErrorTolerance=UE_SMALL_NUMBER)
Definition UnrealMathUtility.h:388
Definition RecordedTransformTrack.h:207
float Timestamp
Definition RecordedTransformTrack.h:250
Definition RecordedTransformTrack.h:104
Definition RecordedTransformTrack.h:15
FSolverCollisionData(FVector InLocation, FVector InAccumulatedImpulse, FVector InNormal, FVector InVelocity1, FVector InVelocity2, FVector InAngularVelocity1, FVector InAngularVelocity2, float InMass1, float InMass2, int32 InParticleIndex, int32 InLevelsetIndex, int32 InParticleIndexMesh, int32 InLevelsetIndexMesh)
Definition RecordedTransformTrack.h:34
Definition RecordedTransformTrack.h:137
FSolverTrailingData(FVector InLocation, FVector InVelocity, FVector InAngularVelocity, float InMass, int32 InParticleIndex, int32 InParticleIndexMesh)
Definition RecordedTransformTrack.h:149
friend bool operator==(const FSolverTrailingData &A, const FSolverTrailingData &B)
Definition RecordedTransformTrack.h:186
static CORE_API const TVector< double > ZeroVector
Definition Vector.h:79
double FReal
Definition Vector.h:55