CARLA
Loading...
Searching...
No Matches
Namespaces | Functions
TrafficSignHeightUtils.h File Reference
#include "CoreMinimal.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.