11 #include "Kismet/BlueprintFunctionLibrary.h" 13 #include "GameFramework/Actor.h" 15 #include "BoundingBoxCalculator.generated.h" 30 UFUNCTION(Category =
"Carla Actor", BlueprintCallable)
33 uint8 InTagQueried = 0xFF);
35 UFUNCTION(Category =
"Carla Actor", BlueprintCallable)
38 uint8 InTagQueried = 0xFF);
40 UFUNCTION(Category =
"Carla Actor", BlueprintCallable)
43 uint8 InTagQueried = 0xFF);
45 UFUNCTION(Category =
"Carla Actor", BlueprintCallable)
46 static void GetTrafficLightBoundingBox(
48 TArray<FBoundingBox>& OutBB,
49 TArray<uint8>& OutTag,
50 uint8 InTagQueried = 0xFF);
52 UFUNCTION(Category =
"Carla Util", BlueprintCallable)
53 static FBoundingBox GetSkeletalMeshBoundingBox(
const USkeletalMesh* SkeletalMesh);
55 UFUNCTION(Category =
"Carla Util", BlueprintCallable)
56 static FBoundingBox GetStaticMeshBoundingBox(
const UStaticMesh* StaticMesh);
58 UFUNCTION(Category =
"Carla Util", BlueprintCallable)
59 static void GetISMBoundingBox(
60 UInstancedStaticMeshComponent*
ISMComp,
61 TArray<FBoundingBox>& OutBoundingBox);
63 UFUNCTION(Category =
"Carla Util", BlueprintCallable)
64 static void GetBBsOfStaticMeshComponents(
65 const TArray<UStaticMeshComponent*>& StaticMeshComps,
66 TArray<FBoundingBox>& OutBB,
67 TArray<uint8>& OutTag,
68 uint8 InTagQueried = 0xFF);
70 UFUNCTION(Category =
"Carla Util", BlueprintCallable)
71 static void GetBBsOfSkeletalMeshComponents(
72 const TArray<USkeletalMeshComponent*>& SkeletalMeshComps,
73 TArray<FBoundingBox>& OutBB,
74 TArray<uint8>& OutTag,
75 uint8 InTagQueried = 0xFF);
77 UFUNCTION(Category =
"Carla Util", BlueprintCallable)
78 static TArray<FBoundingBox> GetBoundingBoxOfActors(
79 const TArray<AActor*>& Actors,
80 uint8 InTagQueried = 0xFF);
82 UFUNCTION(Category =
"Carla Util", BlueprintCallable)
83 static TArray<FBoundingBox> GetBBsOfActor(
85 uint8 InTagQueried = 0xFF);
91 UFUNCTION(Category =
"Carla Util", BlueprintCallable)
92 static void CombineBBsOfActor(
94 TArray<FBoundingBox>& OutBB,
95 TArray<uint8>& OutTag,
96 const float DistanceThreshold = 0.0f,
97 uint8 TagToCombine = 0xFF);
99 UFUNCTION(Category =
"Carla Util", BlueprintCallable)
100 static FBoundingBox CombineBBs(
const TArray<FBoundingBox>& BBsToCombine);
102 UFUNCTION(Category =
"Carla Util", BlueprintCallable)
103 static FBoundingBox CombineBoxes(
const TArray<UBoxComponent *>& BBsToCombine);
107 UFUNCTION(Category =
"Carla Actor", BlueprintCallable)
108 static void GetMeshCompsFromActorBoundingBox(
111 TArray<UStaticMeshComponent*>& OutStaticMeshComps);
carla::SharedPtr< cc::Actor > Actor
Base class for CARLA wheeled vehicles.