Navigation
API > API/Runtime > API/Runtime/Engine
| Name | FNetworkPhysicsSettingsResimulationErrorCorrection |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/Physics/NetworkPhysicsSettingsComponent.h |
| Include Path | #include "Physics/NetworkPhysicsSettingsComponent.h" |
Syntax
USTRUCT ()
struct FNetworkPhysicsSettingsResimulationErrorCorrection
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNetworkPhysicsSettingsResimulationErrorCorrection() |
Physics/NetworkPhysicsSettingsComponent.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bOverrideResimErrorInterpolationSettings | uint32 | Enable override for post-resimulation error correction settings during render interpolation NOTE: This currently does not work if the experimental p.RenderInterp.ErrorVelocityCorrection CVar is set to true (false by default) | Physics/NetworkPhysicsSettingsComponent.h |
|
| bRenderInterpApplyExponentialDecay | bool | Overrides CVar: p.RenderInterp.ApplyExponentialDecay When enabled a post-resim error will decay exponentially (instead of linearly) based on half-life time set in ExponentialDecayLinearHalfLife and ExponentialDecayAngularHalfLife. | Physics/NetworkPhysicsSettingsComponent.h |
|
| RenderInterpExponentialDecayAngularHalfLife | float | Overrides CVar: p.RenderInterp.ExponentialDecayAngularHalfLife Sets the rotational half-life time for when bApplyExponentialDecay is enabled. | Physics/NetworkPhysicsSettingsComponent.h |
|
| RenderInterpExponentialDecayLinearHalfLife | float | Overrides CVar: p.RenderInterp.ExponentialDecayLinearHalfLife Sets the positional half-life time for when bApplyExponentialDecay is enabled. | Physics/NetworkPhysicsSettingsComponent.h |
|
| RenderInterpMinimumAngularThreshold | float | Overrides CVar: p.RenderInterp.MinimumAngularThreshold When the remaining render error angle is below this we clear it, if ApplyExponentialDecay is enabled. | Physics/NetworkPhysicsSettingsComponent.h |
|
| RenderInterpMinimumLinearThreshold | float | Overrides CVar: p.RenderInterp.MinimumLinearThreshold Squared value, when the remaining render error is below this we clear it, if ApplyExponentialDecay is enabled. | Physics/NetworkPhysicsSettingsComponent.h |
|
| ResimErrorCorrectionDuration | float | Overrides CVar: p.RenderInterp.ErrorCorrectionDuration How long in seconds to apply error correction over | Physics/NetworkPhysicsSettingsComponent.h |
|
| ResimErrorDirectionalDecayMultiplier | float | Overrides CVar: p.RenderInterp.DirectionalDecayMultiplier Decay error offset in the direction that the physics object is moving, value is multiplier of projected offset direction, 0.25 means a 25 % decay of the magnitude in the direction of physics travel.Deactivate by setting to 0 | Physics/NetworkPhysicsSettingsComponent.h |
|
| ResimErrorMaximumDesyncTimeBeforeSnapping | float | Overrides CVar: p.RenderInterp.MaximumErrorCorrectionDesyncTimeBeforeSnapping Time multiplied by the particles velocity to get the distance that error correction will be performed within without snapping, disable by setting a negative value NOTE: ResimErrorMaximumDistanceBeforeSnapping will act as a lowest distance clamp. | Physics/NetworkPhysicsSettingsComponent.h |
|
| ResimErrorMaximumDistanceBeforeSnapping | float | Overrides CVar : p.RenderInterp.MaximumErrorCorrectionBeforeSnapping Maximum error correction in cm before we stop interpolating and snap to target | Physics/NetworkPhysicsSettingsComponent.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ApplySettings_External
(
Chaos::FPhysicsObjectHandle PhysicsObject, |
Apply these settings to Physics Object | Physics/NetworkPhysicsSettingsComponent.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool FromPhysicObject
(
Chaos::FPhysicsObjectHandle PhysicsObject, |
Physics/NetworkPhysicsSettingsComponent.h | ||
static void ResetSettings_External
(
Chaos::FPhysicsObjectHandle PhysicsObject |
Physics/NetworkPhysicsSettingsComponent.h |