> I'd use the following steps:
> 1 - randomly chose a point along the axis of your cone
> 2 - randomly chose a radius, adjust that acording to your location along
> the axis
> 3 - randomly chose an angle from 0 to 360 and rotate your location around
> the axis
> 4 - place one asteroid at that location, and check that it don't intersect
> another one. Use an array to store the locations.
Isn't that method going to produce more asteroids per unit volume near the
narrow end of the cone, and also near the axis of the cone?
Post a reply to this message
|