Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
CharacterMotionWarpingComponentBase.h
이 파일의 문서화 페이지로 가기
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CK_UE.h"
6#include "MotionWarpingComponent.h"
7#include "CharacterMotionWarpingComponentBase.generated.h"
8
10
11
12UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent), Abstract)
13class CK_UE_API UCharacterMotionWarpingComponentBase : public UMotionWarpingComponent
14{
15 GENERATED_BODY()
16
17public:
18 UCharacterMotionWarpingComponentBase(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get());
19
20public:
21 void StopMotionWarp(FName WarpTargetName = NAME_None);
22 void UpdateMotionWarpTarget(FName WarpTargetName, const FVector& TargetLocation, const FRotator& TargetRotation, bool bRestart = false);
23 void UpdateMotionWarpToTarget(FName WarpTargetName, ITargetableInterface* Target, float CorrectionRange, float DesiredRange, float InnerOffset);
24 void RotateCharacterToNearestTarget(FName WarpTargetName = FName("Target"), float TargetRange = 450.0f);
25 bool UpdateMotionWarpTargetToNearestTargetAtRange(FName WarpTargetName, float CorrectionRange, float DesiredRange, float InnerOffset);
26
27
29 virtual void ResetLockOnTarget();
30
31public:
33 FORCEINLINE FVector GetWarpSteeringDirection() const
34 {
35 return GetWarpFallbackDirection();
36 }
37
38protected:
40 virtual bool FindWarpTargetLocation(float MaxRange, FVector& OutTargetLocation) PURE_VIRTUAL(UCharacterMotionWarpingComponentBase::FindWarpTargetLocation, return false;);
41
43 virtual FVector GetWarpFallbackDirection() const;
44
45private:
46 void UpdateWarpTargetWithRangeCorrection(FName WarpTargetName, const FVector& TargetLocation, float CorrectionRange, float DesiredRange, float InnerOffset);
47};
static const FName WarpTargetName(TEXT("KnockDown"))
Definition TargetableInterface.h:20