elevate pi points so they don't overlap with the sphere

This commit is contained in:
Calli
2023-07-02 23:13:57 +03:00
parent 7656a285b2
commit 8f0b19d255

View File

@@ -70,7 +70,8 @@ const PinsCanvas3D = ({
const theta = p.longitude;
vectorPI.setFromSphericalCoords(SPHERE_RADIUS, phi, theta);
dotGeometryPI.lookAt(vectorPI);
dotGeometryPI.translate(vectorPI.x, vectorPI.y, vectorPI.z);
dotGeometryPI.translate(vectorPI.x, vectorPI.y, vectorPI.z - 0.1);
console.log(vectorPI.z);
dotGeometriesPI.push(dotGeometryPI);
});