FPhysicsReplication

Windows
MacOS
Linux

Syntax

class FPhysicsReplication

Constructors

Name Description

Public function

FPhysicsReplication

(
    FPhysScene* PhysScene
)

Destructors

Name Description

Public function Virtual

~FPhysicsReplication()

Functions

Name Description

Protected function Virtual

bool

 

ApplyRigidBodyState

(
    float DeltaSeconds,
    FBodyInstance* BI,
    FReplicatedPhysicsTarget& PhysicsT...,
    const FRigidBodyErrorCorrection& E...,
    const float PingSecondsOneWay
)

Called when a dynamic rigid body receives a physics update

Protected function

UWorld *

 

GetOwningWorld()

Protected function Const

const UWorld...

 

GetOwningWorld()

Protected function Virtual

void

 

OnTargetRestored

(
    TWeakObjectPtr< UPrimitiveComponent...,
    const FReplicatedPhysicsTarget& Ta...
)

Protected function Virtual

void

 

OnTick

(
    float DeltaSeconds,
    TMap< TWeakObjectPtr< UPrimitiveCom...
)

Update the physics body state given a set of replicated targets

Public function Virtual

void

 

RemoveReplicatedTarget

(
    UPrimitiveComponent* Component
)

Remove the replicated target

Public function Virtual

void

 

SetReplicatedTarget

(
    UPrimitiveComponent* Component,
    FName BoneName,
    const FRigidBodyState& ReplicatedT...
)

Sets the latest replicated target for a body instance

Public function

void

 

Tick

(
    float DeltaSeconds
)

Tick and update all body states according to replicated targets

References

Module

Engine

Header

Runtime/Engine/Public/PhysicsReplication.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback