Hi,
i want to add a world generator to my game that spawns objects randomly around planets. The objects should spawn at a specific distance because the planet has a range in which it pulls objects to itself with the platform behaviour.
Here is a screenshot of my game with a planet:
https://drive.google.com/open?id=0B7r2W ... jVtRi0zVEk
The red line shows where the objects should be spawned.
After they are spawned they will be pulled to the planet automatically (If they are touching the atmosphere) so everything i would like to know is how to find the right X and Y coordinates when the objects are spawned.
Thanks! <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">