Search Unity

3D GameObject Layout

Discussion in 'Navigation' started by reality_rocks_my_world, Jul 2, 2018.

  1. reality_rocks_my_world

    reality_rocks_my_world

    Joined:
    Jun 11, 2018
    Posts:
    2
    Okay, so this one has me incredibly stumped. I am using A* pathfinding, together with the point graph option, to generate a 3D space of nodes.

    I've tested this with a simple 5 x 5 x 5 cube consisting of empty GameObjects that I have configured as the "Root" for the point graph. Now, if I want to create a larger cube (say 10 x 10 x 10), I don't want to have to insert and individually transform the GameObjects to get what I need. Is there an easier way of implementing this? Something that allows me to configure the spacing between each empty, as well as the number of empties along the width, length, and height? Below is an example of a 4 x 4 x 4 which I had to individually paste row by row, followed by face by face (you can understand why this would take forever with bigger cubes). Thanks in advance!

    upload_2018-7-2_17-34-28.png