CARLA
Loading...
Searching...
No Matches
Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Settings/EpisodeSettings.h
Go to the documentation of this file.
1// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma
2// de Barcelona (UAB).
3//
4// This work is licensed under the terms of the MIT license.
5// For a copy, see <https://opensource.org/licenses/MIT>.
6
7#pragma once
8
9#include "EpisodeSettings.generated.h"
10
11USTRUCT(BlueprintType)
12struct CARLA_API FEpisodeSettings
13{
14 GENERATED_BODY()
15
16 UPROPERTY(EditAnywhere, BlueprintReadWrite)
17 bool bSynchronousMode = false;
18
19 UPROPERTY(EditAnywhere, BlueprintReadWrite)
20 bool bNoRenderingMode = false;
21
22 UPROPERTY(EditAnywhere, BlueprintReadWrite)
23 bool bSubstepping = true;
24
25 TOptional<double> FixedDeltaSeconds;
26
27 double MaxSubstepDeltaTime = 0.01;
28
29 int MaxSubsteps = 10;
30
31 float MaxCullingDistance = 0.0f;
32
33 UPROPERTY(EditAnywhere, BlueprintReadWrite)
34 bool bDeterministicRagdolls = true;
35
36 float TileStreamingDistance = 300000.f; // 3km
37
38 float ActorActiveDistance = 200000.f; // 2km
39
40 bool SpectatorAsEgo = true;
41
42 // When true, OpenDRIVE-generated signs/lights are snapped to the ground.
43 // Drives ATrafficLightManager's flag at runtime via carla.WorldSettings so
44 // the feature can be toggled on maps whose manager is spawned with defaults.
45 bool bAdjustSignsHeightToGround = false;
46
47 // When true, contacts are detected on the same frame in every run. Applied
48 // when a world is created, not on apply_settings: see FCarlaEngine.
49 bool bDeterministicCollisions = false;
50
51};