Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
ProjectileMovementBase.h
이 파일의 문서화 페이지로 가기
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "UObject/Object.h"
7#include "ProjectileMovementBase.generated.h"
8
9
10UCLASS(Abstract, Blueprintable, BlueprintType, EditInlineNew)
11class CK_UE_API UProjectileMovementBase : public UObject
12{
13 GENERATED_BODY()
14
15public:
16 virtual void Activate(const FVector& InStart, const FVector& InDirectionOrTarget) PURE_VIRTUAL(UProjectileMovementBase::Activate,);
17
18 virtual bool Simulate(float InDeltaTime, AActor* InOwner) PURE_VIRTUAL(UProjectileMovementBase::Tick, return false;);
19 virtual float GetProjectileDuration() const { return 0.0f; }
20
22 virtual bool SampleFlightPosition(float Progress, FVector& OutPosition) const { return false; }
23
25 FORCEINLINE float GetElapsedTime() const { return ElapsedTime; }
26
27public:
28 FORCEINLINE FVector GetCurrentVelocity() const
29 {
30 return CurrentVelocity;
31 }
32
33protected:
34 FVector CurrentVelocity = FVector::ZeroVector;
35 float ElapsedTime = 0.0f;
36};
Definition ProjectileMovementBase.h:12
virtual void virtual Activate(const FVector &InStart, const FVector &InDirectionOrTarget) PURE_VIRTUAL(UProjectileMovementBase bool Simulate(float InDeltaTime, AActor *InOwner) PURE_VIRTUAL(UProjectileMovementBase
Definition ProjectileMovementBase.h:18
virtual float GetProjectileDuration() const
Definition ProjectileMovementBase.h:19
FORCEINLINE float GetElapsedTime() const
Definition ProjectileMovementBase.h:25
FORCEINLINE FVector GetCurrentVelocity() const
Definition ProjectileMovementBase.h:28
virtual bool SampleFlightPosition(float Progress, FVector &OutPosition) const
Definition ProjectileMovementBase.h:22