Is there a way i can manipulate GetActorLocation so that i can spawn an actor ontop of another actor.
What i have atm
void ABrick::OnOverlap(class AActor * OtherActor, class UPrimitiveComponent * OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult &SweepResult)
{
if (OtherActor && (OtherActor != this) && OtherComp)
{
// Spawn Actor & Play Sound
ACoin * SpawnedActor1 = ()->SpawnActor<ACoin>(GetActorLocation(), FRotator(0, 0, 0));
}
}