#include <ProjectileMovementParabolic.h>
◆ Activate()
| void UProjectileMovementParabolicInterp::Activate |
( |
const FVector & |
InStart, |
|
|
const FVector & |
InTarget |
|
) |
| |
|
overridevirtual |
46{
53}
FVector CurrentVelocity
Definition ProjectileMovementBase.h:28
float ArcHeight
Definition ProjectileMovementParabolic.h:59
float TotalTime
Definition ProjectileMovementParabolic.h:64
float ElapsedTime
Definition ProjectileMovementParabolic.h:65
float ActiveArcHeight
Definition ProjectileMovementParabolic.h:66
FVector StartLocation
Definition ProjectileMovementParabolic.h:62
float Duration
Definition ProjectileMovementParabolic.h:56
FVector EndLocation
Definition ProjectileMovementParabolic.h:63
◆ GetProjectileDuration()
| virtual float UProjectileMovementParabolicInterp::GetProjectileDuration |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ Simulate()
| bool UProjectileMovementParabolicInterp::Simulate |
( |
float |
InDeltaTime, |
|
|
AActor * |
InOwner |
|
) |
| |
|
overridevirtual |
57{
60
61 if (Alpha > (1.0f - KINDA_SMALL_NUMBER))
62 {
65 return true;
66 }
67
71
72 const FVector PrevLocation = InOwner->GetActorLocation();
73 InOwner->SetActorLocation(NewLocation, true);
74
75 const FVector TravelDir = NewLocation - PrevLocation;
77
78 return false;
79}
TObjectPtr< UCurveFloat > PositionCurve
Definition ProjectileMovementParabolic.h:53
◆ ActiveArcHeight
| float UProjectileMovementParabolicInterp::ActiveArcHeight = 0.f |
|
private |
◆ ArcHeight
| float UProjectileMovementParabolicInterp::ArcHeight = 300.f |
◆ Duration
| float UProjectileMovementParabolicInterp::Duration = 1.f |
◆ ElapsedTime
| float UProjectileMovementParabolicInterp::ElapsedTime = 0.f |
|
private |
◆ EndLocation
| FVector UProjectileMovementParabolicInterp::EndLocation = FVector::ZeroVector |
|
private |
◆ PositionCurve
| TObjectPtr<UCurveFloat> UProjectileMovementParabolicInterp::PositionCurve |
◆ StartLocation
| FVector UProjectileMovementParabolicInterp::StartLocation = FVector::ZeroVector |
|
private |
◆ TotalTime
| float UProjectileMovementParabolicInterp::TotalTime = 1.f |
|
private |
이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: