Hey everyone,
I’m just a starter in Unity. For a university project I want to generate cubes with random height at the position where the mouse is while the camera is flying straight on the Z axis.
Right know a made a reycast script who give me the position of the mouse back. But now I’m a bit stumped how to go on.
I know I need a script to
a) generate the cubes with random heights like (Y between 1 and 5)
b) definite the areas where the cubes are allowed to spawn, so they don’t overlap and have space to each other.
Has anyone experience or knows a good way to solve this problem or maybe I miss something important.
Thanks for any help or food for thoughts.
greeting tited