Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Plugins/Runtime/NetworkPredictionExtras/Source/NetworkPredictionExtras/Public/MockPhysicsSimulation.h |
Include |
#include "MockPhysicsSimulation.h" |
USTRUCT(BlueprintType)
struct FMockPhysicsInputCmd
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.
Name | Description | |
---|---|---|
|
FMockPhysicsInputCmd() |
Name | Description | ||
---|---|---|---|
|
NetSerialize ( |
||
|
ToString ( |