Navigation
API > API/Plugins > API/Plugins/NetworkPrediction
References
| Module | NetworkPrediction |
| Header | /Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkPredictionPhysics.h |
| Include | #include "NetworkPredictionPhysics.h" |
Syntax
struct FNetworkPredictionPhysicsState
Remarks
Actual physics state. More of these could be created to include more state or change the serialization
Variables
| Type | Name | Description | |
|---|---|---|---|
| Chaos::FVec3 | AngularVelocity | ||
| Chaos::FVec3 | LinearVelocity | ||
| Chaos::FVec3 | Location | ||
| Chaos::FRotation3 | Rotation |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BeginInterpolation
(
UPrimitiveComponent* Driver |
||
| bool | ContainsNaN () |
||
| void | EndInterpolation
(
UPrimitiveComponent* Driver |
||
| void | FinalizeInterpolatedPhysics
(
UPrimitiveComponent* Driver, |
Interpolation related functions currently need to go through a UPrimitiveComponent. | |
| void | Interpolate
(
const FNetworkPredictionPhysicsState* From, |
||
| void | MarshalPhysicsToComponent
(
UPrimitiveComponent* PrimitiveComponent, |
||
| void | NetRecv
(
const FNetSerializeParams& P, |
||
| void | NetSend
(
const FNetSerializeParams& P, |
||
| void | PerformRollback
(
UPrimitiveComponent* PrimitiveComponent, |
||
| void | PerformRollback
(
FBodyInstance* BodyInstance, |
||
| void | PostResimulate
(
UPrimitiveComponent* PrimitiveComponent, |
||
| bool | ShouldReconcile
(
int32 PhysicsFrame, |
||
| bool | StateIsConsistent
(
UPrimitiveComponent* PrimitiveComponent, |
||
| void | ToString
(
const FNetworkPredictionPhysicsState* RecvState, |
Networked state to string. | |
| void | ToString
(
FBodyInstance* BodyInstance, |
Current state to string. | |
| void | ToString
(
int32 PhysicsFrame, |
Locally stored state to string. |