Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
ProjectileMovementParabolic.h
이 파일의 문서화 페이지로 가기
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "ProjectileMovementParabolic.generated.h"
8
9class UCurveFloat;
10
11
12UCLASS(DisplayName = "포물선 (방향)")
14{
15 GENERATED_BODY()
16
17public:
18 virtual void Activate(const FVector& InStart, const FVector& InDirection) override;
19 virtual bool Simulate(float InDeltaTime, AActor* InOwner) override;
20 virtual float GetProjectileDuration() const override { return Duration; }
21
22public:
23 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Movement")
24 float Speed = 1000.f;
25
26 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Movement")
27 float Duration = 2.f;
28
29 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Movement")
30 float ArcHeight = 300.f;
31
32private:
33 FVector StartLocation = FVector::ZeroVector;
34 FVector FlightDirection = FVector::ZeroVector;
35 float TotalTime = 1.f;
36 float ElapsedTime = 0.f;
37 float ActiveArcHeight = 0.f;
38};
39
40
41UCLASS(DisplayName = "포물선 보간 (목표 지점)")
43{
44 GENERATED_BODY()
45
46public:
47 virtual void Activate(const FVector& InStart, const FVector& InTarget) override;
48 virtual bool Simulate(float InDeltaTime, AActor* InOwner) override;
49 virtual float GetProjectileDuration() const override { return Duration; }
50
51public:
52 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Movement")
53 TObjectPtr<UCurveFloat> PositionCurve;
54
55 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Movement")
56 float Duration = 1.f;
57
58 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Movement")
59 float ArcHeight = 300.f;
60
61private:
62 FVector StartLocation = FVector::ZeroVector;
63 FVector EndLocation = FVector::ZeroVector;
64 float TotalTime = 1.f;
65 float ElapsedTime = 0.f;
66 float ActiveArcHeight = 0.f;
67};
Definition ProjectileMovementBase.h:12
Definition ProjectileMovementParabolic.h:43
virtual float GetProjectileDuration() const override
Definition ProjectileMovementParabolic.h:49
Definition ProjectileMovementParabolic.h:14
virtual float GetProjectileDuration() const override
Definition ProjectileMovementParabolic.h:20