6#include "MotionWarpingComponent.h"
7#include "CharacterMotionWarpingComponentBase.generated.h"
12UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent), Abstract)
13class CK_UE_API UCharacterMotionWarpingComponentBase :
public UMotionWarpingComponent
18 UCharacterMotionWarpingComponentBase(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get());
22 void UpdateMotionWarpTarget(FName
WarpTargetName, const FVector& TargetLocation, const FRotator& TargetRotation,
bool bRestart = false);
24 void RotateCharacterToNearestTarget(FName
WarpTargetName = FName("Target"),
float TargetRange = 450.0f);
25 bool UpdateMotionWarpTargetToNearestTargetAtRange(FName
WarpTargetName,
float CorrectionRange,
float DesiredRange,
float InnerOffset);
29 virtual
void ResetLockOnTarget();
33 FORCEINLINE FVector GetWarpSteeringDirection()
const
35 return GetWarpFallbackDirection();
40 virtual bool FindWarpTargetLocation(
float MaxRange, FVector& OutTargetLocation) PURE_VIRTUAL(UCharacterMotionWarpingComponentBase::FindWarpTargetLocation,
return false;);
43 virtual FVector GetWarpFallbackDirection()
const;
46 void UpdateWarpTargetWithRangeCorrection(FName
WarpTargetName,
const FVector& TargetLocation,
float CorrectionRange,
float DesiredRange,
float InnerOffset);
static const FName WarpTargetName(TEXT("KnockDown"))
Definition TargetableInterface.h:20