#include <ProjectileMovementParabolic.h>
◆ Activate()
| void UProjectileMovementParabolic::Activate |
( |
const FVector & |
InStart, |
|
|
const FVector & |
InDirection |
|
) |
| |
|
overridevirtual |
9{
16}
FVector CurrentVelocity
Definition ProjectileMovementBase.h:28
float TotalTime
Definition ProjectileMovementParabolic.h:35
float ElapsedTime
Definition ProjectileMovementParabolic.h:36
FVector StartLocation
Definition ProjectileMovementParabolic.h:33
float Duration
Definition ProjectileMovementParabolic.h:27
float ArcHeight
Definition ProjectileMovementParabolic.h:30
float ActiveArcHeight
Definition ProjectileMovementParabolic.h:37
FVector FlightDirection
Definition ProjectileMovementParabolic.h:34
float Speed
Definition ProjectileMovementParabolic.h:24
◆ GetProjectileDuration()
| virtual float UProjectileMovementParabolic::GetProjectileDuration |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ Simulate()
| bool UProjectileMovementParabolic::Simulate |
( |
float |
InDeltaTime, |
|
|
AActor * |
InOwner |
|
) |
| |
|
overridevirtual |
20{
23
24 if (Alpha > (1.0f - KINDA_SMALL_NUMBER))
25 {
28 InOwner->SetActorLocation(LandingPoint, false);
29 return true;
30 }
31
34 const FVector NewLocation = HorizontalPos + FVector(0.f, 0.f, ArcZ);
35 const FVector PrevLocation = InOwner->GetActorLocation();
36 InOwner->SetActorLocation(NewLocation, true);
37
38 const FVector TravelDir = NewLocation - PrevLocation;
40
41 return false;
42}
◆ ActiveArcHeight
| float UProjectileMovementParabolic::ActiveArcHeight = 0.f |
|
private |
◆ ArcHeight
| float UProjectileMovementParabolic::ArcHeight = 300.f |
◆ Duration
| float UProjectileMovementParabolic::Duration = 2.f |
◆ ElapsedTime
| float UProjectileMovementParabolic::ElapsedTime = 0.f |
|
private |
◆ FlightDirection
| FVector UProjectileMovementParabolic::FlightDirection = FVector::ZeroVector |
|
private |
◆ Speed
| float UProjectileMovementParabolic::Speed = 1000.f |
◆ StartLocation
| FVector UProjectileMovementParabolic::StartLocation = FVector::ZeroVector |
|
private |
◆ TotalTime
| float UProjectileMovementParabolic::TotalTime = 1.f |
|
private |
이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: