CARLA
Loading...
Searching...
No Matches
Functions | Variables
CustomTerrainPhysicsComponent.cpp File Reference
#include "CustomTerrainPhysicsComponent.h"
#include "Carla/MapGen/LargeMapManager.h"
#include "Carla/Game/CarlaStatics.h"
#include "Carla/MapGen/SoilTypeManager.h"
#include "Carla/Actor/ActorBlueprintFunctionLibrary.h"
#include <util/ue-header-guard-begin.h>
#include "Async/ParallelFor.h"
#include "Engine/AssetManager.h"
#include "Engine/CollisionProfile.h"
#include "Engine/StaticMeshActor.h"
#include "Engine/StreamableManager.h"
#include "UObject/SoftObjectPath.h"
#include "StaticMeshResources.h"
#include "CollisionQueryParams.h"
#include "Landscape.h"
#include "LandscapeHeightfieldCollisionComponent.h"
#include "LandscapeComponent.h"
#include "RHICommandList.h"
#include "TextureResource.h"
#include "GenericPlatform/GenericPlatformProcess.h"
#include "Materials/MaterialParameterCollection.h"
#include "Materials/MaterialParameterCollectionInstance.h"
#include "Materials/MaterialInterface.h"
#include "Materials/MaterialInstance.h"
#include "Components/SkinnedMeshComponent.h"
#include "Async/Async.h"
#include "Async/Future.h"
#include "LandscapeProxy.h"
#include "UObject/SavePackage.h"
#include "HAL/PlatformFileManager.h"
#include "HAL/RunnableThread.h"
#include "Misc/Paths.h"
#include "Engine/World.h"
#include "Math/UnrealMathUtility.h"
#include "GenericPlatform/GenericPlatformFile.h"
#include "Engine/Texture2D.h"
#include "Engine/Texture.h"
#include "Rendering/Texture2DResource.h"
#include "Engine/TextureRenderTarget2D.h"
#include "Components/PrimitiveComponent.h"
#include "DrawDebugHelpers.h"
#include "Kismet/KismetSystemLibrary.h"
#include "Misc/CommandLine.h"
#include "Components/LineBatchComponent.h"
#include "Math/OrientedBox.h"
#include "Misc/DateTime.h"
#include "EngineUtils.h"
#include <util/ue-header-guard-end.h>
#include <util/disable-ue4-macros.h>
#include "carla/rpc/String.h"
#include <util/enable-ue4-macros.h>
#include <filesystem>
#include <algorithm>
#include <fstream>
#include <thread>
#include <chrono>

Go to the source code of this file.

Functions

static TAutoConsoleVariable< int32 > CVarAsyncHeightmapLoad (TEXT("carla.Terrain.AsyncHeightmapLoad"), 1, TEXT("legacy synchronous path (for rollback/debugging)."), ECVF_Default)
 
float SIToUEFrame (const float &In)
 
FVector SIToUEFrame (const FVector &In)
 
FVector SIToUEFrameDirection (const FVector &In)
 
float UEFrameToSI (const float &In)
 
FVector UEFrameToSI (const FVector &In)
 
FVector UEFrameToSIDirection (const FVector &In)
 

Variables

const int CacheExtraRadius = 10
 
static std::string CachePath
 
constexpr float CMToM = 0.01f
 
constexpr float MToCM = 100.f
 

Function Documentation

◆ CVarAsyncHeightmapLoad()

static TAutoConsoleVariable< int32 > CVarAsyncHeightmapLoad ( TEXT("carla.Terrain.AsyncHeightmapLoad")  ,
1  ,
TEXT("legacy synchronous path (for rollback/debugging).")  ,
ECVF_Default   
)
static

◆ SIToUEFrame() [1/2]

float SIToUEFrame ( const float &  In)

Definition at line 109 of file CustomTerrainPhysicsComponent.cpp.

References MToCM.

◆ SIToUEFrame() [2/2]

FVector SIToUEFrame ( const FVector &  In)

Definition at line 105 of file CustomTerrainPhysicsComponent.cpp.

References MToCM.

Referenced by FDenseTile::GetParticlesInBox().

◆ SIToUEFrameDirection()

FVector SIToUEFrameDirection ( const FVector &  In)

Definition at line 110 of file CustomTerrainPhysicsComponent.cpp.

◆ UEFrameToSI() [1/2]

float UEFrameToSI ( const float &  In)

Definition at line 119 of file CustomTerrainPhysicsComponent.cpp.

References CMToM.

◆ UEFrameToSI() [2/2]

FVector UEFrameToSI ( const FVector &  In)

◆ UEFrameToSIDirection()

FVector UEFrameToSIDirection ( const FVector &  In)

Variable Documentation

◆ CacheExtraRadius

const int CacheExtraRadius = 10

Definition at line 76 of file CustomTerrainPhysicsComponent.cpp.

◆ CachePath

std::string CachePath
static
Initial value:
= [] {
constexpr char OverridePathEV[] = "CARLA_CACHE_DIR";
constexpr char HomePathEV[] =
"HOME";
const char* override_path = std::getenv(OverridePathEV);
if (override_path != NULL)
return fs::path(override_path).string();
fs::path path = std::getenv(HomePathEV);
path /= "carlaCache";
return fs::absolute(path).string();
}()

Definition at line 89 of file CustomTerrainPhysicsComponent.cpp.

◆ CMToM

constexpr float CMToM = 0.01f
constexpr

Definition at line 74 of file CustomTerrainPhysicsComponent.cpp.

Referenced by UEFrameToSI(), and UEFrameToSI().

◆ MToCM

constexpr float MToCM = 100.f
constexpr

Definition at line 73 of file CustomTerrainPhysicsComponent.cpp.

Referenced by SIToUEFrame(), and SIToUEFrame().