FRigidBodyErrorCorrection

Rigid body error correction data

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/EngineTypes.h

Include

#include "Engine/EngineTypes.h"

Syntax

struct FRigidBodyErrorCorrection

Remarks

Rigid body error correction data

Variables

Name Description

Public variable

float

 

AngleLerp

How much to directly lerp to the correct angle.

Public variable

float

 

AngularVelocityCoefficient

This is the angular analog to LinearVelocityCoefficient.

Public variable

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.

Public variable

float

 

ErrorAccumulationSeconds

Number of seconds to remain in a heuristically unresolveable state before hard snapping.

Public variable

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.

Public variable

float

 

ErrorPerAngularDifference

Error per degree

Public variable

float

 

ErrorPerLinearDifference

Error per centimeter

Public variable

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.

Public variable

float

 

MaxLinearHardSnapDistance

Public variable

float

 

MaxRestoredStateError

Maximum allowable error for a state to be considered "resolved"

Public variable

float

 

PingExtrapolation

Value between 0 and 1 which indicates how much velocity and ping based correction to use

Public variable

float

 

PingLimit

For the purpose of extrapolation, ping will be clamped to this value

Public variable

float

 

PositionLerp

How much to directly lerp to the correct position.

Constructors

Name Description

Public function

FRigidBodyErrorCorrection()