Navigation
API > API/Plugins > API/Plugins/Mover > API/Plugins/Mover/Backends
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- UMoverNetworkPhysicsLiaisonComponent
References
| Module | Mover |
| Header | /Engine/Plugins/Experimental/Mover/Source/Mover/Public/Backends/MoverNetworkPhysicsLiaison.h |
| Include | #include "Backends/MoverNetworkPhysicsLiaison.h" |
Syntax
UCLASS ()
class UMoverNetworkPhysicsLiaisonComponent :
public UActorComponent ,
public IMoverBackendLiaisonInterface
Remarks
MoverPhysicsLiaisonComponent: This component acts as a middleman between an actor's Mover component and the chaos physics network prediction system. This class is set on a Mover component as the "back end".
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bCachedInputIsValid | ||
| bool | bCachedLastPhysicsSyncStateIsValid | ||
| bool | bUsingAsyncPhysics | ||
| FMoverSyncState | CachedLastPhysicsSyncState | The cached physics state is the latest output from the physics thread This can be different from the cached sync state on the mover component which is interpolated to match the interpolated physics particle Note: Time is physics solver time | |
| double | CachedLastPhysicsSyncStateOutputTime | ||
| TObjectPtr< UCommonLegacyMovementSettings > | CommonMovementSettings | ||
| TUniquePtr< Chaos::FCharacterGroundConstraint > | Constraint | ||
| TObjectPtr< UMoverComponent > | MoverComp | ||
| FMoverInputCmdContext | NetInputCmd | These are written to by the network input and state data. | |
| FMoverSyncState | NetSyncState | ||
| TObjectPtr< UNetworkPhysicsComponent > | NetworkPhysicsComponent |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| void | ConsumeOutput_External
(
const FPhysicsMoverAsyncOutput& Output, |
||
| void | |||
| FMoverTimeStep | Time step on the game thread when using async physics. Uses physics results time. | ||
| FMoverTimeStep | Time step on the physics thread when using async physics. | ||
| void | GetCurrentInputData
(
OUTFMoverInputCmdContext& InputCmd |
Required for Network Physics Rewind/Resim data. | |
| FMoverTimeStep | GetCurrentMoverTimeStep
(
float DeltaSeconds |
Time step on the game thread when using non-async physics. | |
| void | GetCurrentStateData
(
OUTFMoverSyncState& SyncState |
||
| int32 | |||
| Chaos::FUniqueIdx | GetUniqueIdx () |
Used by the manager to uniquely identify the component. | |
| bool | |||
| void | OnComponentPhysicsStateChanged
(
UPrimitiveComponent* ChangedComponent, |
||
| void | OnContactModification_Internal
(
const FPhysicsMoverAsyncInput& Input, |
||
| void | OnPreSimulate_Internal
(
const FPhysicsMoverSimulationTickParams& TickParams, |
||
| void | ProcessInputs_Internal
(
int32 PhysicsStep, |
||
| void | ProduceInput_External
(
float DeltaSeconds, |
||
| void | SetCurrentInputData
(
const FMoverInputCmdContext& InputCmd |
||
| void | SetCurrentStateData
(
const FMoverSyncState& SyncState |
||
| void | |||
| void | TeleportParticle
(
Chaos::FGeometryParticleHandle* Particle, |
||
| void | |||
| bool | ValidateInputData
(
FMoverInputCmdContext& InputCmd |
||
| void | WakeParticleIfSleeping
(
Chaos::FGeometryParticleHandle* Particle |
Overridden from UActorComponent
| Type | Name | Description | |
|---|---|---|---|
| void | BeginPlay () |
Begins Play for the component. | |
| void | EndPlay
(
const EEndPlayReason::Type EndPlayReason |
Ends gameplay for this component. | |
| bool | Used to check that DestroyPhysicsState() is working correctly | ||
| void | Initializes the component. | ||
| void | Used to create any physics engine information for this component | ||
| void | Used to shut down and physics engine structure for this component | ||
| void | OnRegister () |
Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called. | |
| void | OnUnregister () |
Called when a component is unregistered. | |
| bool | Return true if CreatePhysicsState() should be called. | ||
| void | Handle this component being Uninitialized. |
Overridden from IMoverBackendLiaisonInterface
| Type | Name | Description | |
|---|---|---|---|
| int32 | |||
| float | |||
| EDataValidationResult | ValidateData
(
FDataValidationContext& Context, |