diff --git a/Source/Nakatomi/PlayerCharacter.cpp b/Source/Nakatomi/PlayerCharacter.cpp index d0561a3..e3bf10b 100644 --- a/Source/Nakatomi/PlayerCharacter.cpp +++ b/Source/Nakatomi/PlayerCharacter.cpp @@ -580,9 +580,10 @@ void APlayerCharacter::ThrowWeaponCallback() FVector Location; FVector BoxExtent; GetActorBounds(true, Location, BoxExtent, false); - - FVector SpawnLocation = FVector(Location.X, Location.Y + (BoxExtent.Y / 2), Location.Z + (BoxExtent.Z / 2)); - SpawnLocation += GetTransform().GetLocation(); + + FVector SpawnLocation = (BoxExtent.X * GetActorForwardVector()) * 2; + SpawnLocation += Location; + SpawnLocation.Z += BoxExtent.Z; if (TSubclassOf WeaponThrowableTemplate = GetCurrentWeapon()->GetWeaponThrowableTemplate()) {