Hello ~
I don’t know how to change pivot point.
Location works, but pivot point is still on origin point.
How can i solve this problem ?
Plz Help …
if (AActor* Actor = Cast<AActor>(*It))
{
//const FVector CurrentPos = Actor->GetActorLocation();
//const FVector NewPos = CurrentPos.MirrorByPlane(MirrorPlane);
const FVector CurrentPivot = Actor->GetPivotOffset();
const FVector NewPivot = CurrentPivot.MirrorByPlane(MirrorPlane);
Actor->Modify();
//Actor->SetActorLocation(NewPos);
Actor->SetPivotOffset(NewPivot);
}