unreal.PhysicsReplicationMode

class unreal.PhysicsReplicationMode

Bases: EnumBase

EPhysics Replication Mode

C++ Source:

  • Module: Engine

  • File: EngineTypes.h

DEFAULT: PhysicsReplicationMode

Default physics replication.

Type:

0

PREDICTIVE_INTERPOLATION: PhysicsReplicationMode

Work In Progress. Physics replication performing velocity interpolation. Recommendation: Set on actors with a local role of ENetRole::ROLE_SimulatedProxy. Designed to handle local predictive interactions with other actors, especially actors of the local role ENetRole::ROLE_AutonomousProxy.

Type:

1

RESIMULATION: PhysicsReplicationMode

Work In Progress. Forward predicted replication by simulating physics and correcting errors through resimulating physics from a correct state in the past. Recommendation: Set on actors with a local role of ENetRole::ROLE_AutonomousProxy. Can be used for both ROLE_AutonomousProxy and ROLE_SimulatedProxy, though not recommended for ROLE_SimulatedProxy due to CPU performance. Available when Project Settings > Physics Prediction is enabled.

Type:

2