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