Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Physics
Inheritance Hierarchy
- FNetworkPhysicsData
- FNetworkPhysicsMoverInputs
- FNetworkPhysicsMoverState
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Physics/NetworkPhysicsComponent.h |
| Include | #include "Physics/NetworkPhysicsComponent.h" |
Syntax
USTRUCT ()
struct FNetworkPhysicsData
Remarks
Base network physics data that will be used by physics
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bReceivedData | If this data was received over the network or locally predicted. | |
| int32 | InputFrame | Input frame used to generate the network data. | |
| int32 | LocalFrame | Local frame at which this data has been generated. | |
| int32 | ServerFrame | Server frame at which this data has been generated. | |
| friend | UNetworkPhysicsComponent |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyData
(
UActorComponent* NetworkComponent |
Apply the data onto the network physics component. | |
| void | ApplyDatas
(
UActorComponent* NetworkComponent |
DEPRECATED | |
| void | BuildData
(
const UActorComponent* NetworkComponent |
Build the data from the network physics component. | |
| void | BuildDatas
(
const UActorComponent* NetworkComponent |
||
| bool | CompareData
(
const FNetworkPhysicsData& PredictedData |
Define how to compare client and server data for the same frame, returning false means the data differ enough to trigger a resimulation. | |
| void | DecayData
(
float DecayAmount |
Use to decay desired data during resimulation if data is forward predicted. | |
| void | InterpolateData
(
const FNetworkPhysicsData& MinData, |
Define how to interpolate between two data points if we have a gap between known data. | |
| void | InterpolateDatas
(
const FNetworkPhysicsData& MinData, |
||
| void | MergeData
(
const FNetworkPhysicsData& FromData |
Define how to merge data together | |
| void | SerializeFrames
(
FArchive& Ar |
Serialize the data into/from the archive. | |
| void | ValidateData
(
const UActorComponent* NetworkComponent |
Validate data received on the server from clients EXAMPLE: Validate incoming inputs from clients and correct any invalid input commands. |