UMockPhysicsComponent

ActorComponent for running MockPhysicsSimulation

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

NetworkPredictionExtras

Header

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

Include

#include "MockPhysicsComponent.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(BlueprintType, Meta=(BlueprintSpawnableComponent))
class UMockPhysicsComponent : public UBaseMovementComponent

Remarks

ActorComponent for running MockPhysicsSimulation

Variables

Name Description

Protected variable

FMockPhysicsSim...

 

ActiveSimulation

Public variable UProperty Category BlueprintReadOnly visibleanywhere

bool

 

bIsCharging

Currently charging up charge attack.

Public variable UProperty Category BlueprintAssignable

FPhysicsChargeC...

 

OnChargeActivatedEvent

Public variable UProperty Category BlueprintAssignable

FMockPhysicsNot...

 

OnChargeStateChange

Public variable UProperty Category BlueprintAssignable

FPhysicsJumpCue...

 

OnJumpActivatedEvent

Protected variable

TPimplPtr< FMoc...

 

OwnedSimulation

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

FMockPhysicsInp...

 

PendingInputCmd

Next local InputCmd that will be submitted. This is just one way to do it.

Public variable

FProduceMockPhy...

 

ProduceInputDelegate

Constructors

Name Description

Public function

UMockPhysicsComponent()

Functions

Name Description

Public function

void

 

FinalizeFrame

(
    const void* SyncState,
    const FMockPhysicsAuxState* Au...
)

Take output for simulation.

Public function

void

 

HandleCue

(
    const FMockPhysicsJumpCue& JumpCue,
    const FNetSimCueSystemParamemters&...
)

Public function

void

 

HandleCue

(
    const FMockPhysicsChargeCue& Charg...,
    const FNetSimCueSystemParamemters&...
)

Public function

void

 

InitializeSimulationState

(
    const void* Sync,
    FMockPhysicsAuxState* Aux
)

Seed initial values based on component's state.

Protected function

void

 

InitMockPhysicsSimulation

(
    FMockPhysicsSimulation* Simula...
)

Public function

void

 

ProduceInput

(
    const int32 DeltaTimeMS,
    FMockPhysicsInputCmd* Cmd
)

Get latest local input prior to simulation step.

Overridden from UNetworkPredictionComponent

Name Description

Protected function Virtual

void

 

InitializeNetworkPredictionProxy()

Network Prediction.

Classes

Name

Description

Public class

FMockPhysicsNotifyStateChange

Charge (not a Cue event, just state)

Public class

FPhysicsChargeCueEvent

Public class

FPhysicsJumpCueEvent

Assignable delegates chosen so that owning actor can implement in BPs. May not be the best choice for all cases.

Typedefs

Name

Description

FProduceMockPhysicsInput

Forward input producing event to someone else (probably the owning actor)

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