16 FVector StartLocation, FVector EndLocation, UWorld * World)
18 TArray<FHitResult> OutHits;
19 World->LineTraceMultiByChannel(
23 ECC_GameTraceChannel3,
24 FCollisionQueryParams(),
25 FCollisionResponseParams()
27 std::vector<crp::LabelledPoint> result;
28 for (
auto& Hit : OutHits)
34 FVector UELocation = Hit.Location;
47 FVector StartLocation, FVector Direction,
float MaxDistance, UWorld * World)
50 bool bDidHit = World->LineTraceSingleByChannel(
53 StartLocation + Direction.GetSafeNormal() * MaxDistance,
54 ECC_GameTraceChannel2,
55 FCollisionQueryParams(),
56 FCollisionResponseParams()
64 FVector UELocation = Hit.Location;
static crp::CityObjectLabel GetTagOfTaggedComponent(const UPrimitiveComponent &Component)
Retrieve the tag of an already tagged component.
static ACarlaGameModeBase * GetGameMode(const UObject *WorldContextObject)
ALargeMapManager * GetLMManager() const
static std::pair< bool, carla::rpc::LabelledPoint > ProjectPoint(FVector StartLocation, FVector Direction, float MaxDistance, UWorld *World)
Base class for the CARLA Game Mode.
FVector LocalToGlobalLocation(const FVector &InLocation) const
static std::vector< carla::rpc::LabelledPoint > CastRay(FVector StartLocation, FVector EndLocation, UWorld *World)