From 8f0b19d2558ccb08b0042dac120025735b71b260 Mon Sep 17 00:00:00 2001 From: Calli Date: Sun, 2 Jul 2023 23:13:57 +0300 Subject: [PATCH] elevate pi points so they don't overlap with the sphere --- src/app/components/PlanetaryInteraction/PinsCanvas3D.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/components/PlanetaryInteraction/PinsCanvas3D.tsx b/src/app/components/PlanetaryInteraction/PinsCanvas3D.tsx index 6f53e1a..e999cec 100644 --- a/src/app/components/PlanetaryInteraction/PinsCanvas3D.tsx +++ b/src/app/components/PlanetaryInteraction/PinsCanvas3D.tsx @@ -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); });