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