Hello! I am trying to make a script where a cube is the agent and it tries to aggregate itself in such a way, that it remains structurally stable (the reward). The new cube spawns on one of the faces of the previous cube. The new cube has a random size (and for later, random rotation).
I also want to add bounds and say that the agent gets a positive reward for not going out of the bounds, but again that is for later
I have written a basic script and yet something seems to be wrong. The spawning does not work in Heuristic. I am a beginner in this and right now, this seems impossible. Any help would be appreciated. Thank you so much. Please!!!
Attached you shall find the C# source file.
9686372–1381508–SelfSpawningAgent.cs (4.46 KB)