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

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. Work in progress, available when Project Settings > Physics Prediction is enabled.

Type:

1

RESIMULATION: PhysicsReplicationMode

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. Work in progress, available when Project Settings > Physics Prediction > Resimulation is enabled.

Type:

2