CARLA
Loading...
Searching...
No Matches
Namespaces | Functions
TrafficSignHeightUtils.cpp File Reference
#include "TrafficSignHeightUtils.h"
#include "Carla.h"
#include "TrafficSignBase.h"
#include "Carla/Game/Tagger.h"
#include <util/ue-header-guard-begin.h>
#include "Components/BoxComponent.h"
#include "Components/SceneComponent.h"
#include "Engine/World.h"
#include "GameFramework/Actor.h"
#include "LandscapeProxy.h"
#include <util/ue-header-guard-end.h>

Go to the source code of this file.

Namespaces

namespace  TrafficSignHeightUtils
 Helpers to snap OpenDRIVE-spawned traffic signs / lights onto the ground so they are not left floating in the air or sunk below the terrain.
 

Functions

bool TrafficSignHeightUtils::AdjustLocationToGround (UWorld *World, FVector &Location, const TArray< AActor * > &IgnoredActors, const TArray< UPrimitiveComponent * > &IgnoredComponents)
 Line-trace downward to find the ground under Location.
 
bool TrafficSignHeightUtils::AdjustSignToGround (UWorld *World, ATrafficSignBase *Sign, const TArray< AActor * > &IgnoredActors, const TArray< UPrimitiveComponent * > &IgnoredComponents)
 Snap a single traffic sign to the ground and shift its trigger UBoxComponents by the same delta so they stay aligned.