Question by
beebeebum · Nov 20, 2016 at 03:45 PM ·
instantiateprefabs
How to generate object (Coins) between two object clones (obstacles)
As shown in the attached picture, I have two obstacle clones created using instantiate method and the position of the obstacles are random. Now I need to generate coins above and between the two obstacles. I tried to generate the coins using same method as generating the obstacles, but the coins will overlap with my obstacles. Any idea on how to solve my problem?
This is the codes I used to generated the obstacles randomly
untitled.png
(5.2 kB)
capture.jpg
(59.5 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612101032im_/https://answers.unity.com/themes/thub/images/avi.jpg)