Hello, Ue Community I recently started learning C++ to convert some BP to it.
but now I hit an issue and I’m kinda stuck, I’m trying to use FRotationMatrix::MakeFromZX but getting some issues.
I’m using an ActorComponent for this.
hope someone can help me.
AActor* Parent = GetOwner();
{
FMatrix AlignRotation = FRotationMatrix::MakeFromZX(Parent->GetActorLocation(), Parent->GetActorForwardVector());
Parent->SetActorLocationAndRotation(Parent->GetActorLocation() + Parent->GetActorForwardVector() * MoveingSpeed * DeltaTime, FMatrix (AlignRotation), false, 0, ETeleportType::None);
Getting an issue here at "->" saying
Error (active) E0304 no instance of overloaded function "AActor::SetActorLocationAndRotation" matches the argument list.
}