Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FNetworkPhysicsPayload
Description
Define how to merge data from a previous adjacent frame into the current data. Called when multiple frames need to be combined into a single simulation tick, e.g. when a simulated proxy receives multiple inputs at once, or during resim frame coalescing where skipped frames are merged into the frame that actually simulates. FromData is always from an older adjacent frame; *this is always the newer/accumulated frame. Implementations can rely on the following conventions:
- Floats/vectors: Value = (Value + From.Value) * 0.5
- Booleans: bValue |= From.bValue (true if either frame had it active)
- Discrete/enum: keep *this value (*this is always the newer/accumulated frame)
Derived Overrides
| Name | MergeData |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Physics/NetworkPhysicsComponent.h |
| Include Path | #include "Physics/NetworkPhysicsComponent.h" |
virtual void MergeData
(
const FNetworkPhysicsPayload & FromData
)