Navigation
API > API/Runtime > API/Runtime/Engine
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/PhysicsReplication.h |
| Include | #include "PhysicsReplication.h" |
Syntax
struct FReplicatedPhysicsTargetAsync
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | AccumulatedErrorSeconds | Physics sync error accumulation | |
| float | AccumulatedSleepSeconds | Accumulated seconds asleep | |
| float | AverageReceiveInterval | ||
| bool | bAllowTargetAltering | If this target is allowed to be altered, via extrapolation or target alignment via TickCount | |
| bool | bWaiting | If this target is waiting for up-to-date data? | |
| int32 | FrameOffset | The frame offset between local client and server. (LocalFrame = ServerFrame - FrameOffset) | |
| FVector | PrevLinVel | ||
| FVector | PrevPos | ||
| FVector | PrevPosTarget | Correction values from previous update | |
| int32 | PrevReceiveFrame | ||
| FQuat | PrevRotTarget | ||
| int32 | PrevServerFrame | ||
| int32 | ReceiveFrame | The local client frame when receiving this target from the server | |
| int32 | ReceiveInterval | Local physics frames between received targets | |
| EPhysicsReplicationMode | RepMode | The replication mode this PhysicsObject should use | |
| EPhysicsReplicationMode | RepModeOverride | ||
| int32 | ServerFrame | ServerFrame this target was replicated on. (LocalFrame = ServerFrame - FrameOffset) | |
| PRAGMA_ENABLE_DEPRECATION_WARNINGSFRigidBodyState | TargetState | The target state replicated by server | |
| int32 | TickCount | The amount of simulation ticks this target has been used for | |
| int32 | WaitForServerFrame | ServerFrame for the target to wait on, no replication will be performed while waiting for up to date data. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGS |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const bool | IsWaiting () |
Is this target waiting for up to date data? | |
| void | SetWaiting
(
int32 InWaitForServerFrame |
Set target to wait for data newer than | |
| const void | SetWaiting
(
int32 InWaitForServerFrame, |
Set target to wait for data newer than | |
| void | UpdateWaiting
(
int32 InServerFrame |
Update waiting status and clear waiting if |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FReplicatedPhysicsTargetAsync & | operator=
(
const FReplicatedPhysicsTargetAsync& |
||
| FReplicatedPhysicsTargetAsync & |