Navigation
API > API/Runtime > API/Runtime/Engine
START Iris Compliant Data
| Name | FNetworkPhysicsPayload |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/Physics/NetworkPhysicsComponent.h |
| Include Path | #include "Physics/NetworkPhysicsComponent.h" |
Syntax
USTRUCT ()
struct FNetworkPhysicsPayload
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FNetworkPhysicsPayload() |
Physics/NetworkPhysicsComponent.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bDataAltered | bool | If this data was altered so that it doesn't correspond the produced source data (from merging, interpolating or extrapolating) | Physics/NetworkPhysicsComponent.h | |
| bImportant | bool | If this data is marked as important (replicated reliably) | Physics/NetworkPhysicsComponent.h | |
| bReceivedData | bool | If this data was received over the network or locally predicted. | Physics/NetworkPhysicsComponent.h | |
| LocalFrame | int32 | Physics/NetworkPhysicsComponent.h | ||
| ServerFrame | int32 | Physics/NetworkPhysicsComponent.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CompareData
(
const FNetworkPhysicsPayload& PredictedData |
Define how to compare client and server data for the same frame, returning false means the data differ enough to trigger a resimulation. | Physics/NetworkPhysicsComponent.h | |
| Return string with custom debug data | Physics/NetworkPhysicsComponent.h | ||
| Physics/NetworkPhysicsComponent.h | |||
virtual void DecayData
(
float DecayAmount |
Use to decay desired data during resimulation if data is forward predicted. | Physics/NetworkPhysicsComponent.h | |
virtual void DoInterpolateData
(
const FNetworkPhysicsPayload& MinData, |
Temporary virtual function for backwards compatibility with FNetworkPhysicsData.Use the InterpolateData function that passes the LerpAlpha instead | Physics/NetworkPhysicsComponent.h | |
virtual void InterpolateData
(
const FNetworkPhysicsPayload& MinData, |
Define how to interpolate between two data points if we have a gap between known data. | Physics/NetworkPhysicsComponent.h | |
virtual void MergeData
(
const FNetworkPhysicsPayload& FromData |
Define how to merge data together | Physics/NetworkPhysicsComponent.h | |
void PrepareFrame
(
int32 CurrentFrame, |
Physics/NetworkPhysicsComponent.h |