- Home /
Random Generating
Hello, I have a script that generates random cave parts(size etc.) and now I need to spawn gameObjects that I've created on the surface of a cave. But I just don't imagine how to do that. Somhow I need to create a gameObject and then randomly move it untill it collides, then I need to "Destroy(gameObject) and Instantiate another gameObject that I need, but how to check colledes an object or not and how to generate objects after generating the cave. And Also another problem is rotation, how to make them stand by y axis always up? I don't think someone's gonna answer but if you know the solution, pls help me!
Your answer
Follow this Question
Related Questions
Code to randomly generate a mesh? 0 Answers
Help with Generating Random Tiles 1 Answer
Random Button / Plane Generation. 0 Answers
How to generate random terrain for a platformer 0 Answers
Random Tile Generation 0 Answers