Navigation
API > API/Runtime > API/Runtime/Chaos
Render Interpolation that both perform the linear error correction from FProxyInterpolationError and takes incoming velocity into account to make a smoother and more organic correction of the error.
| Name | FProxyInterpolationErrorVelocity |
| Type | struct |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Framework/PhysicsProxyBase.h |
| Include Path | #include "Chaos/Framework/PhysicsProxyBase.h" |
Syntax
struct FProxyInterpolationErrorVelocity : public FProxyInterpolationError
Inheritance Hierarchy
- FProxyInterpolationBase → FProxyInterpolationError → FProxyInterpolationErrorVelocity
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FProxyInterpolationErrorVelocity
(
const int32 PullDataInterpIdx, |
Chaos/Framework/PhysicsProxyBase.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FProxyInterpolationErrorVelocity() |
Chaos/Framework/PhysicsProxyBase.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Super | FProxyInterpolationError | Chaos/Framework/PhysicsProxyBase.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| InterpolationType | const EProxyInterpolationType | Chaos/Framework/PhysicsProxyBase.h |
Functions
Public
Overridden from FProxyInterpolationBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const Chaos::FRealSingle GetErrorVelocitySmoothingAlpha
(
const int32 ErrorVelocitySmoothDuration |
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 | Chaos/Framework/PhysicsProxyBase.h | |
virtual const Chaos::FVec3 GetErrorVelocitySmoothingX
(
const Chaos::FRealSingle Alpha |
EXPERIMENTAL - Get the position of the velocity-based correction, taking current Alpha between GT and PT into account | Chaos/Framework/PhysicsProxyBase.h | |
virtual const EProxyInterpolationType GetInterpolationType() |
Get this interpolation structs type | Chaos/Framework/PhysicsProxyBase.h | |
virtual const bool IsErrorVelocitySmoothing() |
EXPERIMENTAL - If currently correcting error while taking velocity into account | Chaos/Framework/PhysicsProxyBase.h | |
virtual void SetVelocitySmoothing
(
const Chaos::FVec3 CurrV, |
EXPERIMENTAL - Register the current velocity and position for use in velocity correction calculations | Chaos/Framework/PhysicsProxyBase.h | |
virtual const bool UpdateError
(
const int32 CurrentSimTick, |
Tick current error data and decay error | Chaos/Framework/PhysicsProxyBase.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void StepErrorVelocitySmoothingData
(
const Chaos::FReal AsyncFixedTimeStep |
Chaos/Framework/PhysicsProxyBase.h |