Repositioning the origin of the world for each player in landscape-sized grids.
This project is focused on a grid tool that reposition the origin of the world individually for each player.
This grid generator is a algorithm that spawns several grids in the editor next to each other in the 3 vectors X, Y and Z. The grid size is equal to the maximum size of a landscape. The number of actors is temporarily stored in the grid generator variables and can be infinite.
It allows each player to have their own origin in the world and to share objects and their location on the server relatively.
It allows for giant worlds or space games.
Video demonstration: https://www.youtube.com/watch?v=V8ys099dOeE
In the project settings, activate the option "Enable Multiplayer World Origin Rebasing"
Project Settings> Network
Put the actor: GridGenerator_BP in the world
Put the actor: GetWorldOrigin_BP in the world
In the editor select the actor GridGenerator_BP in the world click on the details tab and there will be buttons and parameters that can be controlled in the editor to generate the grids, increase the radius of the cube if it is an even value or a rectangle if it is an odd value or remove it.
The actor: GetWorldOrigin_BP uses a 3d widget to allow the user to view the origin of the world during the game.
Number of Blueprints: 20
Network Replicated: (Yes)
Supported Development Platforms: (ALL)