color okay

This commit is contained in:
clement 2024-01-18 11:25:51 +01:00
parent 13c59458bb
commit c302d4c277

View File

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