- Home /
[C#] Algorithm for randomly packing random radius sphere in fixed radius sphere.
Hello. I'm looking for some algorithms for problem, which i type in topic. I need to pack as many as possible but randomly spheres with random size (from range to range) into fixed size sphere. They cant overlap each other.
Inputs:
Radius of external sphere
Minimum and maximum range of radius internal spheres.
I need it for my map generator.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612090015im_/https://answers.unity.com/themes/thub/images/avi.jpg)