FMockPhysicsInputCmd

Making this a blueprint type to that it can be filled out by BPs.

Windows
MacOS
Linux

References

Module

NetworkPredictionExtras

Header

/Engine/Plugins/Runtime/NetworkPredictionExtras/Source/NetworkPredictionExtras/Public/MockPhysicsSimulation.h

Include

#include "MockPhysicsSimulation.h"

Syntax

[USTRUCT](Programming/UnrealArchitecture/Reference/Structs)([BlueprintType](Programming/UnrealArchitecture/Reference/Structs/Specifiers/BlueprintType))
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

Name Description

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

bool

 

bChargePressed

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

bool

 

bJumpedPressed

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

FVector

 

MovementInput

Constructors

Name Description

Public function

FMockPhysicsInputCmd()

Functions

Name Description

Public function

void

 

NetSerialize

(
    const FNetSerializeParams& P
)

Public function Const

void

 

ToString

(
    FAnsiStringBuilderBase& Out
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss