CARLA
Loading...
Searching...
No Matches
CityMapGenerator.cpp File Reference
#include "CityMapGenerator.h"
#include "Carla.h"
#include "MapGen/GraphGenerator.h"
#include "MapGen/RoadMap.h"
#include "Game/Tagger.h"
#include <util/ue-header-guard-begin.h>
#include "Components/InstancedStaticMeshComponent.h"
#include "Engine/World.h"
#include "Misc/Paths.h"
#include <util/ue-header-guard-end.h>
#include <algorithm>
#include <unordered_set>

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()

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