발사체 이동 컴포넌트
This commit is contained in:
parent
e2751c403c
commit
4da7802d04
@ -42,15 +42,6 @@ void ABasePawn::RotateTurret(FVector LookAtTarget)
|
|||||||
|
|
||||||
void ABasePawn::Fire()
|
void ABasePawn::Fire()
|
||||||
{
|
{
|
||||||
DrawDebugSphere(
|
|
||||||
GetWorld(),
|
|
||||||
ProjectileSpawnPoint->GetComponentLocation(),
|
|
||||||
25,
|
|
||||||
12,
|
|
||||||
FColor::Red,
|
|
||||||
false,
|
|
||||||
3.0
|
|
||||||
);
|
|
||||||
FVector Location = ProjectileSpawnPoint->GetComponentLocation();
|
FVector Location = ProjectileSpawnPoint->GetComponentLocation();
|
||||||
FRotator Rotation = ProjectileSpawnPoint->GetComponentRotation();
|
FRotator Rotation = ProjectileSpawnPoint->GetComponentRotation();
|
||||||
GetWorld()->SpawnActor<AProjectile>(ProjectileClass, Location, Rotation);
|
GetWorld()->SpawnActor<AProjectile>(ProjectileClass, Location, Rotation);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user