develop #12
@ -49,9 +49,9 @@ public class MoleculeFactory : MonoBehaviour{
|
||||
sphere.transform.parent = sortie.transform;
|
||||
sphere.name = atom.element;
|
||||
sphere.transform.localPosition = new Vector3(atom.geometry[0], atom.geometry[1], atom.geometry[2]);
|
||||
//TODO: géré les laision
|
||||
//TODO: géré la taille de l'atome
|
||||
//TODO: géré la couleur de l'atome
|
||||
Color myColor = new Color(0, 0, 1, 1);
|
||||
ColorUtility.TryParseHtmlString("#0AC742", out myColor);
|
||||
sphere.GetComponent<Renderer>().material.color = myColor;
|
||||
}
|
||||
foreach (Bond bond in molecule.bonds){
|
||||
float atom1x = molecule.atoms[bond.atoms[0]].geometry[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user