발사체 이동 컴포넌트

This commit is contained in:
강민제 2025-04-30 23:26:24 +09:00
parent e2751c403c
commit 4da7802d04

View File

@ -42,15 +42,6 @@ void ABasePawn::RotateTurret(FVector LookAtTarget)
void ABasePawn::Fire()
{
DrawDebugSphere(
GetWorld(),
ProjectileSpawnPoint->GetComponentLocation(),
25,
12,
FColor::Red,
false,
3.0
);
FVector Location = ProjectileSpawnPoint->GetComponentLocation();
FRotator Rotation = ProjectileSpawnPoint->GetComponentRotation();
GetWorld()->SpawnActor<AProjectile>(ProjectileClass, Location, Rotation);