Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FNetworkPhysicsData
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void InterpolateData
(
const FNetworkPhysicsData& MinData, |
Define how to interpolate between two data points if we have a gap between known data. | 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 |
InterpolateData(const FNetworkPhysicsData &, const FNetworkPhysicsData &)
Description
Define how to interpolate between two data points if we have a gap between known data.
| Name | InterpolateData |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Physics/NetworkPhysicsComponent.h |
| Include Path | #include "Physics/NetworkPhysicsComponent.h" |
virtual void InterpolateData
(
const FNetworkPhysicsData & MinData,
const FNetworkPhysicsData & MaxData
)
Parameters
| Name | Remarks |
|---|---|
| MinData | is data from a previous frame. |
| MaxData | is data from a future frame. EXAMPLE: We have input data for frame 1 and 4 and we need to interpolate data for frame 2 and 3 based on frame 1 as MinData and frame 4 as MaxData. |
InterpolateData(const FNetworkPhysicsPayload &, const FNetworkPhysicsPayload &, float)
Description
Define how to interpolate between two data points if we have a gap between known data.
| Name | InterpolateData |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Physics/NetworkPhysicsComponent.h |
| Include Path | #include "Physics/NetworkPhysicsComponent.h" |
virtual void InterpolateData
(
const FNetworkPhysicsPayload & MinData,
const FNetworkPhysicsPayload & MaxData,
float LerpAlpha
)
Parameters
| Name | Remarks |
|---|---|
| MinData | is data from a previous frame. |
| MaxData | is data from a future frame. |
| LerpAlpha | is the 0.0 - 1.0 value of where this data is between MinData and MaxData calculated as so: float LerpAlpha = (LocalFrame - MinData.LocalFrame) / (MaxData.LocalFrame - MinData.LocalFrame) EXAMPLE: We have input data for frame 1 and 4 and we need to interpolate data for frame 2 and 3 based on frame 1 as MinData and frame 4 as MaxData, for frame 2 LerpAlpha will be 0.33 and for frame 3 LerpAlpha will be 0.66 |