Stamos22
Member
Hello,
I'm currently working on a hunting game and trying to randomly generate clusters of trees. The trees are objects (and need to be since the player can interact with them).
I have managed to randomly scatter trees all over the map, and this is fine for some maps, but I would really like to figure out a way to create clumps, instead of scattering them everywhere.
My guess would be to have a few container objects that get scattered around the room, and then those containers spawn the clusters of objects. I'm not sure how to randomly scatter the trees from those containers. For example, if I wanted to scatter a group of 3-15 trees in a certain radius without them overlapping.
Any help would be appreciated!
I'm currently working on a hunting game and trying to randomly generate clusters of trees. The trees are objects (and need to be since the player can interact with them).
I have managed to randomly scatter trees all over the map, and this is fine for some maps, but I would really like to figure out a way to create clumps, instead of scattering them everywhere.
My guess would be to have a few container objects that get scattered around the room, and then those containers spawn the clusters of objects. I'm not sure how to randomly scatter the trees from those containers. For example, if I wanted to scatter a group of 3-15 trees in a certain radius without them overlapping.
Any help would be appreciated!