26 UFUNCTION(BlueprintCallable, Category =
"Projectile|Pilot")
27 void Pilot(
const FVector& InStart,
const FVector& InDirectionOrTarget);
29 UFUNCTION(BlueprintCallable, Category =
"Projectile|Pilot")
35 UFUNCTION(BlueprintPure, Category =
"Projectile|Pilot")
36 FORCEINLINE FVector GetVelocity()
const
38 return MovementMode ? MovementMode->GetCurrentVelocity() : FVector::ZeroVector;
41 UFUNCTION(BlueprintPure, Category =
"Projectile|Pilot")
42 FORCEINLINE
bool IsFlying()
const
49 return IsValid(MovementMode) ? MovementMode->GetProjectileDuration() : 0.0f;
53 virtual void TickComponent(
float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
override;
56 void BeginFlight(
const FVector& InStart,
const FVector& InDirectionOrTarget);
63 UPROPERTY(BlueprintAssignable, Category =
"Projectile|Pilot")
64 FOnProjectileArrived OnArrived;
66 UPROPERTY(EditAnywhere, Instanced, Category = "Projectile|Pilot")