unreal.PhysicsPredictionSettings

class unreal.PhysicsPredictionSettings

Bases: StructBase

Physics Prediction Settings

C++ Source:

  • Module: Engine

  • File: PhysicsSettings.h

Editor Properties: (see get_editor_property/set_editor_property)

  • enable_physics_prediction (bool): [Read-Write] Enable networked physics prediction (experimental) Note: If an AActor::PhysicsReplicationMode is set to use Resimulation this will allow physics to cache history which is required by resimulation replication. Note: This can also affect how physics is solved even when not using resimulation.

  • enable_physics_resimulation (bool): [Read-Write] Forces the PlayerController to sync inputs as used in Physics Prediction. Only enable this if actively using a custom solution that needs this enabled for resimulation. This is automatically enabled when using the recommended NetworkPhysicsComponent on a pawn to handle Rewind / Resimulation.

  • max_supported_latency_prediction (float): [Read-Write] Amount of RTT (Round Trip Time) latency for the prediction to support in milliseconds.

  • resimulation_error_threshold (float): [Read-Write] Distance in centimeters before a state discrepancy triggers a resimulation