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;
73 return std::make_pair(bDidHit,
crp::LabelledPoint(FVector(0.0f,0.0f,0.0f), crp::CityObjectLabel::None));