Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/PhysicsEngine
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/PhysicsSettings.h |
| Include | #include "PhysicsEngine/PhysicsSettings.h" |
Syntax
USTRUCT ()
struct FPhysicsPredictionSettings
Remarks
Physics Prediction Settings
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bEnablePhysicsHistoryCapture | Enables FRewindData to cache physics history Note: This is not recommended for networked physics unless developing a custom resimulation solution since this starts caching physics on both client and server, instead only enable bEnablePhysicsPrediction which will automatically enable FRewindData caching on the client if needed by the chosen replication mode. | |
| bool | bEnablePhysicsPrediction | Enable networked physics prediction (experimental) This syncs the physics tick number between client and server and keeps it in sync via time dilation performed on the client, see APlayerController::GetPhysicsTimestamp(). | |
| float | MaxSupportedLatencyPrediction | Amount of RTT (Round Trip Time) latency for the prediction to support in milliseconds. | |
| FPhysicsReplicationResimulationSettings | ResimulationSettings | Default settings for physics replication using EPhysicsReplicationMode::Resimulation. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bEnablePhysicsResimulation_DEPRECATED | BEnablePhysicsResimulation has been renamed, please use bEnablePhysicsHistoryCapture | |
| float | ResimulationErrorThreshold_DEPRECATED | ResimulationErrorThreshold has been renamed and moved, please use FPhysicsReplicationResimulationSettings.ResimulationErrorPositionThreshold |