#include <ProjectileMovementLinear.h>
◆ Activate()
| void UProjectileMovementLinearInterp::Activate |
( |
const FVector & |
InStart, |
|
|
const FVector & |
InTarget |
|
) |
| |
|
overridevirtual |
25{
31}
FVector CurrentVelocity
Definition ProjectileMovementBase.h:28
float Duration
Definition ProjectileMovementLinear.h:46
FVector StartLocation
Definition ProjectileMovementLinear.h:49
float TotalTime
Definition ProjectileMovementLinear.h:51
FVector EndLocation
Definition ProjectileMovementLinear.h:50
float ElapsedTime
Definition ProjectileMovementLinear.h:52
◆ GetProjectileDuration()
| virtual float UProjectileMovementLinearInterp::GetProjectileDuration |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ Simulate()
| bool UProjectileMovementLinearInterp::Simulate |
( |
float |
InDeltaTime, |
|
|
AActor * |
InOwner |
|
) |
| |
|
overridevirtual |
35{
38
39 if (Alpha > (1.0f - KINDA_SMALL_NUMBER))
40 {
43 return true;
44 }
45
48 const FVector PrevLocation = InOwner->GetActorLocation();
49 InOwner->SetActorLocation(NewLocation, true);
50
51 const FVector TravelDir = NewLocation - PrevLocation;
53
54 return false;
55}
TObjectPtr< UCurveFloat > PositionCurve
Definition ProjectileMovementLinear.h:43
◆ Duration
| float UProjectileMovementLinearInterp::Duration = 1.f |
◆ ElapsedTime
| float UProjectileMovementLinearInterp::ElapsedTime = 0.f |
|
private |
◆ EndLocation
| FVector UProjectileMovementLinearInterp::EndLocation = FVector::ZeroVector |
|
private |
◆ PositionCurve
| TObjectPtr<UCurveFloat> UProjectileMovementLinearInterp::PositionCurve |
◆ StartLocation
| FVector UProjectileMovementLinearInterp::StartLocation = FVector::ZeroVector |
|
private |
◆ TotalTime
| float UProjectileMovementLinearInterp::TotalTime = 1.f |
|
private |
이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: