We adapt our previous code to generate an infinite terrain. We use polar co-ordinates and a dictionary to create a 'swirling' pattern of terrain cubes moving outward from the player's position, wherever they are on the map. We also improve our Perlin function for a more satisfying terrain. Again, we make use of 'subsets' of combined cube entities to keep performance silky.
Code: https://github.com/RedHenDev/ursina_t...
Hope you don't mind the longer video!
Thanks for watching :)