Navigation
Unreal Engine C++ API Reference > Plugins > NetworkPredictionExtras
References
Module | NetworkPredictionExtras |
Header | /Engine/Plugins/Runtime/NetworkPredictionExtras/Source/NetworkPredictionExtras/Public/MockPhysicsSimulation.h |
Include | #include "MockPhysicsSimulation.h" |
Syntax
USTRUCT&40;BlueprintType&41;
struct FMockPhysicsInputCmd
Remarks
Mock Physics Simulation This is an example of NP Sim + Physics working together. The NP sim is super simple: it applies forces to the physics body based on InputCmd. In this example there is no Sync state, mainly to illustrate that it is actually optional. That is not a requirement of physics based NP sims.
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() ![]() |
bool | bChargePressed | |
![]() ![]() ![]() ![]() |
bool | bJumpedPressed | |
![]() ![]() ![]() ![]() |
FVector | MovementInput |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | NetSerialize
(
const FNetSerializeParams& P |
|
![]() ![]() |
void | ToString
(
FAnsiStringBuilderBase& Out |