Navigation
API > API/Runtime > API/Runtime/Engine
Rigid body error correction data
| Name | FRigidBodyErrorCorrection |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/EngineTypes.h |
| Include Path | #include "Engine/EngineTypes.h" |
Syntax
USTRUCT ()
struct FRigidBodyErrorCorrection
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRigidBodyErrorCorrection() |
Engine/EngineTypes.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AngleLerp | float | How much to directly lerp to the correct angle. | Engine/EngineTypes.h |
|
| AngularVelocityCoefficient | float | This is the angular analog to LinearVelocityCoefficient. | Engine/EngineTypes.h |
|
| ErrorAccumulationDistanceSq | float | If the body has moved less than the square root of this amount towards a resolved state in the previous frame, then error may accumulate towards a hard snap. | Engine/EngineTypes.h |
|
| ErrorAccumulationSeconds | float | Number of seconds to remain in a heuristically unresolveable state before hard snapping. | Engine/EngineTypes.h |
|
| ErrorAccumulationSimilarity | float | If the previous error projected onto the current error is greater than this value (indicating "similarity" between states), then error may accumulate towards a hard snap. | Engine/EngineTypes.h |
|
| ErrorPerAngularDifference | float | Error per degree | Engine/EngineTypes.h |
|
| ErrorPerLinearDifference | float | Error per centimeter | Engine/EngineTypes.h |
|
| LinearVelocityCoefficient | float | This is the coefficient `k_ in the differential equation: dx/dt = k ( x_target(t) - x(t) ), which is used to update the velocity in a replication step. | Engine/EngineTypes.h |
|
| MaxLinearHardSnapDistance | float | Engine/EngineTypes.h |
|
|
| MaxRestoredStateError | float | Maximum allowable error for a state to be considered "resolved" | Engine/EngineTypes.h |
|
| PingExtrapolation | float | Value between 0 and 1 which indicates how much velocity and ping based correction to use | Engine/EngineTypes.h |
|
| PingLimit | float | For the purpose of extrapolation, ping will be clamped to this value | Engine/EngineTypes.h |
|
| PositionLerp | float | How much to directly lerp to the correct position. | Engine/EngineTypes.h |
|