I just started out using Unreal (coming from Unity), and i’m having troubles understanding the FTransform of an AActor (new class inherited from UActorComponent).
I tried to set the Translation/Rotation of the Object in the Scene like that:
GetOwner()->GetActorTransform().SetTranslation(FVector(0, 0, 0));
According to the documentation, this should set new values for the translation component, but for some reason, it doesnt change anything. Yet, calling this returns the correct values:
This seems to work:
GetOwner()->SetActorLocation(FVector(0, 0, 0));
Why can’t i manipulate the Transform directly?