8#include "CoreMinimal.h"
9#include "Kismet/BlueprintFunctionLibrary.h"
10#include "CollisionQueryParams.h"
11#include "Engine/StaticMesh.h"
13#include "PhysicsUtilities.generated.h"
32 UFUNCTION(BlueprintCallable, Category =
"Physics Utilities")
33 static bool SnapActorToGround(AActor* Actor,
float StartZOffset = 600.0f,
float EndZOffset = 600.0f);
41 UFUNCTION(BlueprintCallable, Category =
"Physics Utilities")
42 static bool SnapActorAboveGround(AActor* Actor,
float AboveOffset = 50.0f);
52 UFUNCTION(BlueprintCallable, Category =
"Physics Utilities")
53 static bool DoesTopPercentageMeshOverlap(AActor* Actor,
const UStaticMesh* Mesh,
float TopPercentage, ECollisionChannel CollisionChannel);
61 UFUNCTION(BlueprintCallable, Category =
"Physics Utilities")
62 static bool HasOverlappingActors(
const UStaticMesh* StaticMesh,
const FTransform&
Transform);
71 UFUNCTION(BlueprintCallable, Category =
"Physics Utilities")
72 static TArray<AActor*> FindOverlappingActorsInSphere(
const FTransform& ActorTransform,
float Radius,
bool DebugVisualizeRadius =
false);
82 static TArray<T*> FindOverlappingActorsOfClass(
const FTransform& ActorTransform,
float Radius,
bool DebugVisualizeRadius =
false);