From e2751c403c4253b5678d0bd548c2d025dfc48c2c Mon Sep 17 00:00:00 2001 From: 10000Je Date: Tue, 29 Apr 2025 00:34:53 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=9C=EC=82=AC=EC=B2=B4=20=EC=9D=B4?= =?UTF-8?q?=EB=8F=99=20=EC=BB=B4=ED=8F=AC=EB=84=8C=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content/Blueprints/Actors/BP_Projectile.uasset | 4 ++-- Content/Blueprints/Pawns/BP_PawnTurret.uasset | 4 ++-- Content/Maps/Main.umap | 4 ++-- Source/ToonTanks/Projectile.cpp | 5 +++++ Source/ToonTanks/Projectile.h | 3 +++ 5 files changed, 14 insertions(+), 6 deletions(-) diff --git a/Content/Blueprints/Actors/BP_Projectile.uasset b/Content/Blueprints/Actors/BP_Projectile.uasset index 98340bc..b9dabe3 100644 --- a/Content/Blueprints/Actors/BP_Projectile.uasset +++ b/Content/Blueprints/Actors/BP_Projectile.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:bcd81cc45d033298a7bacf3d18ec8fa07e5deaa09c25d47f1212cafbba55ffa8 -size 29909 +oid sha256:e4e70149b6b5f13f00746515da0bae58b2016ee8aa2be1ed415c4cda148f6a3a +size 30338 diff --git a/Content/Blueprints/Pawns/BP_PawnTurret.uasset b/Content/Blueprints/Pawns/BP_PawnTurret.uasset index f312497..fbfa3f3 100644 --- a/Content/Blueprints/Pawns/BP_PawnTurret.uasset +++ b/Content/Blueprints/Pawns/BP_PawnTurret.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:80f2b88b8aacf22db6ac564099014b40fc57c37005353f80cf3b775a41b32a40 -size 34184 +oid sha256:a6f5bce080339c33c0e9254163b22818b5a2eb8bf0130121a0af213d7412253f +size 34083 diff --git a/Content/Maps/Main.umap b/Content/Maps/Main.umap index 304d5bb..a1dcc00 100644 --- a/Content/Maps/Main.umap +++ b/Content/Maps/Main.umap @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4f9990606a34a1596a3a6c3e5b039c96cba89c60ece1b2db209a09e0861d850e -size 124468 +oid sha256:a84d501358d6987ebf4fb355c6928a8e887c607af24d3c80d71eb7dae0b1f168 +size 130263 diff --git a/Source/ToonTanks/Projectile.cpp b/Source/ToonTanks/Projectile.cpp index c96e746..4ae1a41 100644 --- a/Source/ToonTanks/Projectile.cpp +++ b/Source/ToonTanks/Projectile.cpp @@ -3,6 +3,8 @@ #include "Projectile.h" +#include "GameFramework/ProjectileMovementComponent.h" + // Sets default values AProjectile::AProjectile() { @@ -10,6 +12,9 @@ AProjectile::AProjectile() PrimaryActorTick.bCanEverTick = false; ProjectileMesh = CreateDefaultSubobject(TEXT("Projectile Mesh")); RootComponent = ProjectileMesh; + ProjectileMovement = CreateDefaultSubobject(TEXT("Projectile Movement")); + ProjectileMovement->InitialSpeed = 400.0f; + ProjectileMovement->MaxSpeed = 1000.0f; } // Called when the game starts or when spawned diff --git a/Source/ToonTanks/Projectile.h b/Source/ToonTanks/Projectile.h index b7f918f..419ea10 100644 --- a/Source/ToonTanks/Projectile.h +++ b/Source/ToonTanks/Projectile.h @@ -28,4 +28,7 @@ private: UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Component", meta=(AllowPrivateAccess="true")) UStaticMeshComponent* ProjectileMesh; + // Projectile Movement Component for Shooting + UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Component", meta=(AllowPrivateAccess="true")) + class UProjectileMovementComponent* ProjectileMovement; };