Hi,
I’m trying to rebase the world origin to fix various rendering issues. I have a satellite actor orbiting an Earth actor in real scale, with the Earth centred on the absolute world origin [0, 0, 0] at the start. Large worlds is enabled in the world settings, but it does not seem to fix the lighting banding & animation jitter caused by single-precision floating point error at this huge scale.
I have tried to rebase the world origin in my spacecraft actor using both of the following functions, where CurPosition is the location of the satellite actor:
GetWorld()->SetNewWorldOrigin((FIntVector) CurPosition);
UGameplayStatics::SetWorldOriginLocation(this, (FIntVector) CurPosition);
Both technically work, but not only is the world origin set to CurPosition, all other actors in my scene seem to jump the same distance in the opposite direction. Enabling ‘ignores origin shifting’ on actors in the editor does not seem to work consistently to prevent this.
My understanding was that the world origin would simply be reset to the new XYZ coordinates, but it seems to actually shift the entire global coordinate system and move the other actors, without moving the current player view? Have I misunderstood? If it helps, the player view camera is parented to the satellite actor.
Many thanks!