Navigation
API > API/Runtime > API/Runtime/Engine
| Name | FAsyncNetworkPhysicsComponent |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Physics/NetworkPhysicsComponent.h |
| Include Path | #include "Physics/NetworkPhysicsComponent.h" |
Syntax
class FAsyncNetworkPhysicsComponent : public Chaos::TSimCallbackObject< FAsyncNetworkPhysicsComponentInput, FAsyncNetworkPhysicsComponentOutput, Chaos::ESimCallbackOptions::PhysicsObjectUnregister >
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAsyncNetworkPhysicsComponent() |
Physics/NetworkPhysicsComponent.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FAsyncNetworkPhysicsComponent() |
Physics/NetworkPhysicsComponent.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| SettingsNetworkPhysicsComponent_Default | const FNetworkPhysicsSettingsNetworkPhysicsComponent | Physics/NetworkPhysicsComponent.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ActorComponent | TWeakObjectPtr< UActorComponent > | Actor component that will be used to fill the histories. | Physics/NetworkPhysicsComponent.h | |
| ActorName | FString | Physics/NetworkPhysicsComponent.h | ||
| bCompareInputToTriggerRewind | bool | Cache compare incoming inputs with locally predicted inputs via FNetworkPhysicsData::CompareData to trigger a resim if they desync. | Physics/NetworkPhysicsComponent.h | |
| bCompareStateToTriggerRewind | bool | Cache predicted states and then compare incoming states via FNetworkPhysicsData::CompareData to trigger a resim if they desync. | Physics/NetworkPhysicsComponent.h | |
| bCompareStateToTriggerRewindIncludeSimProxies | bool | Include simulated proxies when bCompareStateToTriggerRewind is enabled. | Physics/NetworkPhysicsComponent.h | |
| bIsLocallyControlled | bool | Physics/NetworkPhysicsComponent.h | ||
| bIsUsingLegacyData | bool | Physics/NetworkPhysicsComponent.h | ||
| DelegateOnPostProcessInputs_Internal | FDelegateHandle | Physics/NetworkPhysicsComponent.h | ||
| DelegateOnPreProcessInputs_Internal | FDelegateHandle | Physics/NetworkPhysicsComponent.h | ||
| DynamicInputScalingAverageInputs | float | Physics/NetworkPhysicsComponent.h | ||
| ImplementationInterface_Internal | INetworkPhysicsInputState_Internal * | Physics/NetworkPhysicsComponent.h | ||
| InputData | TUniquePtr< FNetworkPhysicsPayload > | Local temporary inputs data used by pre/post process inputs functions. | Physics/NetworkPhysicsComponent.h | |
| InputHelper | TUniquePtr< FNetworkPhysicsDataHelper > | Helper for the creation of input data and history with correct derived type. | Physics/NetworkPhysicsComponent.h | |
| InputHistory | TSharedPtr< Chaos::FBaseRewindHistory > | Inputs history used during simulation. | Physics/NetworkPhysicsComponent.h | |
| InputsToNetwork_Owner | uint16 | Physics/NetworkPhysicsComponent.h | ||
| InputsToNetwork_OwnerDefault | uint16 | Send last N number of inputs each replication call. | Physics/NetworkPhysicsComponent.h | |
| InputsToNetwork_Simulated | uint16 | Physics/NetworkPhysicsComponent.h | ||
| LastInputSendFrame | int32 | Physics/NetworkPhysicsComponent.h | ||
| LastStateSendFrame | int32 | Physics/NetworkPhysicsComponent.h | ||
| LatestInputReceiveData | TUniquePtr< FNetworkPhysicsPayload > | Local temporary inputs data used by ConsumeAsyncInput. | Physics/NetworkPhysicsComponent.h | |
| MissingInputCount | int32 | Physics/NetworkPhysicsComponent.h | ||
| NetMode | ENetMode | Physics/NetworkPhysicsComponent.h | ||
| NetRole | ENetRole | Physics/NetworkPhysicsComponent.h | ||
| NetworkPhysicsTickOffset | int32 | Physics/NetworkPhysicsComponent.h | ||
| NewImportantInputFrame | int32 | Physics/NetworkPhysicsComponent.h | ||
| PhysicsObject | Chaos::FConstPhysicsObjectHandle | Root components physics object. | Physics/NetworkPhysicsComponent.h | |
| PhysicsReplicationMode | EPhysicsReplicationMode | Physics/NetworkPhysicsComponent.h | ||
| SettingsComponent | TWeakPtr< const FNetworkPhysicsSettingsData > | Component settings. | Physics/NetworkPhysicsComponent.h | |
| StateData | TUniquePtr< FNetworkPhysicsPayload > | Local temporary states data used by pre/post process inputs functions. | Physics/NetworkPhysicsComponent.h | |
| StateHelper | TUniquePtr< FNetworkPhysicsDataHelper > | Helper for the creation of state data and history with correct derived type. | Physics/NetworkPhysicsComponent.h | |
| StateHistory | TSharedPtr< Chaos::FBaseRewindHistory > | States history uses to rewind simulation. | Physics/NetworkPhysicsComponent.h | |
| StatesToNetwork | uint16 | Send last N number of states each replication call. | Physics/NetworkPhysicsComponent.h | |
| TimeOfLastDynamicInputScaling | float | Properties for dynamic scaling of inputs. | Physics/NetworkPhysicsComponent.h | |
| UNetworkPhysicsComponent | friend | Physics/NetworkPhysicsComponent.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FString GetActorName() |
Get actor name. | Physics/NetworkPhysicsComponent.h | |
FAsyncNetworkPhysicsComponentOutput & GetAsyncOutput_Internal() |
Get reference to async output for current internal frame and initialize it if not already done. | Physics/NetworkPhysicsComponent.h | |
const ENetRole GetNetRole() |
Get the ENetRole. | Physics/NetworkPhysicsComponent.h | |
const int32 GetNetworkPhysicsTickOffset() |
Get the physics tick offset (add to clients physics tick to get the servers corresponding physics tick) | Physics/NetworkPhysicsComponent.h | |
const EPhysicsReplicationMode GetPhysicsReplicationMode() |
Get the physics replication mode used. | Physics/NetworkPhysicsComponent.h | |
const bool IsLocallyControlled() |
If this network physics component is locally controlled, can be either server or autonomous proxy. | Physics/NetworkPhysicsComponent.h | |
const bool IsServer() |
If we are on the server. | Physics/NetworkPhysicsComponent.h | |
void RegisterDataHistoryInRewindData() |
Add state/input history to rewind data. | Physics/NetworkPhysicsComponent.h | |
const int32 SetupRewindData() |
Enable RewindData history caching and return the history size. | Physics/NetworkPhysicsComponent.h | |
void UnregisterDataHistoryFromRewindData() |
Remove state/input history from rewind data. | Physics/NetworkPhysicsComponent.h |