Navigation
API > API/Plugins > API/Plugins/Mover > API/Plugins/Mover/UMovementUtils
Description
Try to find an acceptable non-colliding location to place TestActor as close to possible to TestLocation. Expects TestLocation to be a valid location inside the level. Returns true if a location without blocking collision is found, in which case TestLocation is overwritten with the new clear location. Returns false if no suitable location could be found, in which case TestLocation is unmodified.
| Name | FindTeleportSpot |
| Type | function |
| Header File | /Engine/Plugins/Experimental/Mover/Source/Mover/Public/MoveLibrary/MovementUtils.h |
| Include Path | #include "MoveLibrary/MovementUtils.h" |
| Source | /Engine/Plugins/Experimental/Mover/Source/Mover/Private/MoveLibrary/MovementUtils.cpp |
UFUNCTION (BlueprintCallable, Category=Mover)
static bool FindTeleportSpot
(
const UMoverComponent * MoverComp,
FVector & TestLocation,
FRotator TestRotation
)