Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Engine/EngineTypes.h |
Include |
#include "Engine/EngineTypes.h" |
struct FRigidBodyErrorCorrection
Rigid body error correction data
Name | Description | ||
---|---|---|---|
|
float |
AngleLerp |
How much to directly lerp to the correct angle. |
|
float |
AngularVelocityCoefficient |
This is the angular analog to LinearVelocityCoefficient. |
|
float |
ErrorAccumulationDistanceSq |
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. |
|
float |
ErrorAccumulationSeconds |
Number of seconds to remain in a heuristically unresolveable state before hard snapping. |
|
float |
ErrorAccumulationSimilarity |
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. |
|
float |
ErrorPerAngularDifference |
Error per degree |
|
float |
ErrorPerLinearDifference |
Error per centimeter |
|
float |
LinearVelocityCoefficient |
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. |
|
float |
MaxLinearHardSnapDistance |
|
|
float |
MaxRestoredStateError |
Maximum allowable error for a state to be considered "resolved" |
|
float |
PingExtrapolation |
Value between 0 and 1 which indicates how much velocity and ping based correction to use |
|
float |
PingLimit |
For the purpose of extrapolation, ping will be clamped to this value |
|
float |
PositionLerp |
How much to directly lerp to the correct position. |
Name | Description | |
---|---|---|
|
FRigidBodyErrorCorrection() |