Hello, I try to place meshs on sphere depending on their rank in a json file.
I am looking for a way to define the position of my meshs in my loop in order to prevent them to be created on each other.
function onMouseGauche(event) {
event = event || window.event;
if (event.button == 0) {
mouse.x = (event.clientX / window.innerWidth) * 2 - 1;
mouse.y = -(event.clientY / window.innerHeight) * 2 + 1;
// update the picking ray with the camera and mouse position
raycaster.setFromCamera(mouse, camera);
// calc