Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Algorthm for placing spheres around the center

Discussion in 'Scripting' started by pretender, Jan 8, 2014.

  1. pretender

    pretender

    Joined:
    Mar 6, 2010
    Posts:
    862
    Hi! Does anybody has the idea how to make an algorithm of placing spheres around the chosen center so that they are stacked together just like on the attached picture?

    $atom_model_01.gif


    image url: http://education.jlab.org/qa/atom_model_01.gif

    ofcourse, to vary a number a spheres to be possible

    Thank you very much guys!

    EDIT: not sure why it does not want to attach the picture, I listed url instead
     
    Last edited: Jan 8, 2014
  2. gfoot

    gfoot

    Joined:
    Jan 5, 2011
    Posts:
    550