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

#include <PhysicsProxyBase.h>

+ Inheritance diagram for FProxyInterpolationErrorVelocity:

Public Types

using Super = FProxyInterpolationError
 
- Public Types inherited from FProxyInterpolationError
using Super = FProxyInterpolationBase
 

Public Member Functions

 FProxyInterpolationErrorVelocity (const int32 PullDataInterpIdx=INDEX_NONE, const int32 InterpChannel=0)
 
virtual ~FProxyInterpolationErrorVelocity ()
 
virtual const EProxyInterpolationType GetInterpolationType () const override
 
virtual const bool IsErrorVelocitySmoothing () const override
 
virtual const Chaos::FRealSingle GetErrorVelocitySmoothingAlpha (const int32 ErrorVelocitySmoothDuration) const override
 
virtual const Chaos::FVec3 GetErrorVelocitySmoothingX (const Chaos::FRealSingle Alpha) const override
 
virtual const bool UpdateError (const int32 CurrentSimTick, const Chaos::FReal AsyncFixedTimeStep) override
 
virtual void SetVelocitySmoothing (const Chaos::FVec3 CurrV, const Chaos::FVec3 CurrX, const int32 ErrorVelocitySmoothDuration) override
 
- Public Member Functions inherited from FProxyInterpolationError
 FProxyInterpolationError (const int32 PullDataInterpIdx=INDEX_NONE, const int32 InterpChannel=0)
 
virtual ~FProxyInterpolationError ()
 
virtual CHAOS_API const bool IsErrorSmoothing () const override
 
virtual const Chaos::FVec3 GetErrorX (const Chaos::FRealSingle Alpha) const override
 
virtual const FQuat GetErrorR (const Chaos::FRealSingle Alpha) const override
 
virtual CHAOS_API void AccumlateErrorXR (const Chaos::FVec3 X, const FQuat R, const int32 CurrentSimTick, const int32 ErrorSmoothDuration) override
 
virtual CHAOS_API const bool DirectionalDecay (Chaos::FVec3 Direction, float ErrorDirectionalDecayMultiplier) override
 
FErrorInterpolationSettingsGetOrCreateErrorInterpolationSettings ()
 
virtual FErrorInterpolationSettingsGetErrorInterpolationSettings () override
 
- Public Member Functions inherited from FProxyInterpolationBase
 FProxyInterpolationBase (const int32 PullDataInterpIdx=INDEX_NONE, const int32 InterpChannel=0)
 
virtual ~FProxyInterpolationBase ()
 
int32 GetPullDataInterpIdx_External () const
 
void SetPullDataInterpIdx_External (const int32 Idx)
 
int32 GetInterpChannel_External () const
 
void SetInterpChannel_External (const int32 Channel)
 
virtual const bool DirectionalDecay (Chaos::FVec3 Direction)
 

Static Public Attributes

static const EProxyInterpolationType InterpolationType = EProxyInterpolationType::ErrorVelocity
 
- Static Public Attributes inherited from FProxyInterpolationError
static const EProxyInterpolationType InterpolationType = EProxyInterpolationType::ErrorLinear
 
- Static Public Attributes inherited from FProxyInterpolationBase
static const EProxyInterpolationType InterpolationType = EProxyInterpolationType::Base
 

Protected Member Functions

virtual void StepErrorVelocitySmoothingData (const Chaos::FReal AsyncFixedTimeStep)
 
- Protected Member Functions inherited from FProxyInterpolationError
virtual CHAOS_API const bool DecayError (const Chaos::FReal AsyncFixedTimeStep)
 
virtual void Reset ()
 

Protected Attributes

Chaos::FVec3 ErrorVelocitySmoothingV = Chaos::FVec3::Zero()
 
Chaos::FVec3 ErrorVelocitySmoothingX = Chaos::FVec3::Zero()
 
Chaos::FVec3 ErrorVelocitySmoothingXPrev = Chaos::FVec3::Zero()
 
int32 ErrorVelocitySmoothingCount = 0
 
- Protected Attributes inherited from FProxyInterpolationError
int32 LastSimTick = 0
 
int32 SimTicks = 0
 
int32 EndDecayTick = 0
 
Chaos::FVec3 ErrorX = Chaos::FVec3::Zero()
 
Chaos::FVec3 ErrorXPrev = Chaos::FVec3::Zero()
 
FQuat ErrorR = FQuat::Identity
 
FQuat ErrorRPrev = FQuat::Identity
 
TUniquePtr< FErrorInterpolationSettingsErrorInterpolationSettings = nullptr
 
- Protected Attributes inherited from FProxyInterpolationBase
int32 PullDataInterpIdx_External
 
int32 InterpChannel_External
 

Member Typedef Documentation

◆ Super

Constructor & Destructor Documentation

◆ FProxyInterpolationErrorVelocity()

FProxyInterpolationErrorVelocity::FProxyInterpolationErrorVelocity ( const int32  PullDataInterpIdx = INDEX_NONE,
const int32  InterpChannel = 0 
)
inline

◆ ~FProxyInterpolationErrorVelocity()

virtual FProxyInterpolationErrorVelocity::~FProxyInterpolationErrorVelocity ( )
inlinevirtual

Member Function Documentation

◆ GetErrorVelocitySmoothingAlpha()

virtual const Chaos::FRealSingle FProxyInterpolationErrorVelocity::GetErrorVelocitySmoothingAlpha ( const int32  ErrorVelocitySmoothDuration) const
inlineoverridevirtual

EXPERIMENTAL - Returns the Alpha of how much to take previous velocity into account, used to lerp from linear extrapolation to the predicted position based on previous velocity

Reimplemented from FProxyInterpolationBase.

◆ GetErrorVelocitySmoothingX()

virtual const Chaos::FVec3 FProxyInterpolationErrorVelocity::GetErrorVelocitySmoothingX ( const Chaos::FRealSingle  Alpha) const
inlineoverridevirtual

EXPERIMENTAL - Get the position of the velocity-based correction, taking current Alpha between GT and PT into account

Reimplemented from FProxyInterpolationBase.

◆ GetInterpolationType()

virtual const EProxyInterpolationType FProxyInterpolationErrorVelocity::GetInterpolationType ( ) const
inlineoverridevirtual

Get this interpolation structs type

Reimplemented from FProxyInterpolationError.

◆ IsErrorVelocitySmoothing()

virtual const bool FProxyInterpolationErrorVelocity::IsErrorVelocitySmoothing ( ) const
inlineoverridevirtual

EXPERIMENTAL - If currently correcting error while taking velocity into account

Reimplemented from FProxyInterpolationBase.

◆ SetVelocitySmoothing()

virtual void FProxyInterpolationErrorVelocity::SetVelocitySmoothing ( const Chaos::FVec3  CurrV,
const Chaos::FVec3  CurrX,
const int32  ErrorVelocitySmoothDuration 
)
inlineoverridevirtual

EXPERIMENTAL - Register the current velocity and position for use in velocity correction calculations

Reimplemented from FProxyInterpolationBase.

◆ StepErrorVelocitySmoothingData()

virtual void FProxyInterpolationErrorVelocity::StepErrorVelocitySmoothingData ( const Chaos::FReal  AsyncFixedTimeStep)
inlineprotectedvirtual

◆ UpdateError()

virtual const bool FProxyInterpolationErrorVelocity::UpdateError ( const int32  CurrentSimTick,
const Chaos::FReal  AsyncFixedTimeStep 
)
inlineoverridevirtual

Tick current error data and decay error

Reimplemented from FProxyInterpolationError.

Member Data Documentation

◆ ErrorVelocitySmoothingCount

int32 FProxyInterpolationErrorVelocity::ErrorVelocitySmoothingCount = 0
protected

◆ ErrorVelocitySmoothingV

Chaos::FVec3 FProxyInterpolationErrorVelocity::ErrorVelocitySmoothingV = Chaos::FVec3::Zero()
protected

◆ ErrorVelocitySmoothingX

Chaos::FVec3 FProxyInterpolationErrorVelocity::ErrorVelocitySmoothingX = Chaos::FVec3::Zero()
protected

◆ ErrorVelocitySmoothingXPrev

Chaos::FVec3 FProxyInterpolationErrorVelocity::ErrorVelocitySmoothingXPrev = Chaos::FVec3::Zero()
protected

◆ InterpolationType

const EProxyInterpolationType FProxyInterpolationErrorVelocity::InterpolationType = EProxyInterpolationType::ErrorVelocity
static

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