CARLA
Classes | Macros | Functions
CityMapGenerator.cpp File Reference
#include "Carla.h"
#include "CityMapGenerator.h"
#include "MapGen/GraphGenerator.h"
#include "MapGen/RoadMap.h"
#include "Game/Tagger.h"
#include "Components/InstancedStaticMeshComponent.h"
#include "Engine/World.h"
#include "Paths.h"
#include <algorithm>
#include <unordered_set>
+ Include dependency graph for CityMapGenerator.cpp:

Go to the source code of this file.

Classes

class  FHalfEdgeCounter
 

Macros

#define ADD_INTERSECTION(tag, x, y, angle)
 

Functions

static bool LineTrace (UWorld *World, const FVector &Start, const FVector &End, FHitResult &HitResult)
 

Macro Definition Documentation

◆ ADD_INTERSECTION

#define ADD_INTERSECTION (   tag,
  x,
  y,
  angle 
)
Value:
AddInstance(tag ##_Lane0, x, y, angle); \
AddInstance(tag ##_Lane1, x, y, angle); \
AddInstance(tag ##_Lane2, x, y, angle); \
AddInstance(tag ##_Lane3, x, y, angle); \
AddInstance(tag ##_Lane4, x, y, angle); \
AddInstance(tag ##_Lane5, x, y, angle); \
AddInstance(tag ##_Lane6, x, y, angle); \
AddInstance(tag ##_Lane7, x, y, angle); \
AddInstance(tag ##_Lane8, x, y, angle); \
AddInstance(tag ##_Lane9, x, y, angle); \
AddInstance(tag ##_Sidewalk0, x, y, angle); \
AddInstance(tag ##_Sidewalk1, x, y, angle); \
AddInstance(tag ##_Sidewalk2, x, y, angle); \
AddInstance(tag ##_Sidewalk3, x, y, angle); \
AddInstance(tag ##_LaneMarking, x, y, angle);

Referenced by ACityMapGenerator::GenerateRoads().

Function Documentation

◆ LineTrace()

static bool LineTrace ( UWorld *  World,
const FVector &  Start,
const FVector &  End,
FHitResult &  HitResult 
)
static

Definition at line 236 of file CityMapGenerator.cpp.

References ATagger::MatchComponent(), and Success.

Referenced by ACityMapGenerator::GenerateRoadMap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: