Hello!
I’ve just started programming tutorial, currently I’m trying to make door, that will open on event.
I don’t know how to change pivot point, so the door wouldn’t rotate around the middle.
Here is, what I tried - but it doesn’t seem to work:
FRotator rotation = GetActorRotation();
FVector pivot = GetPivotOffset();
pivot.Y -= 80.0;
SetPivotOffset(pivot);
rotation.Add(0,60,0);
SetActorRotation(rotation);
Rotation works, but pivot point is still in the middle of the door.