From 58ad13cbfd89fce2a48b86cdbcf458de87e8412c Mon Sep 17 00:00:00 2001 From: Rayzeq Date: Fri, 25 Jun 2021 09:28:11 +0200 Subject: [PATCH] Fix: States labels adapts to height scale --- modules/ui/3d.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/ui/3d.js b/modules/ui/3d.js index c80a63cc..474c50c1 100644 --- a/modules/ui/3d.js +++ b/modules/ui/3d.js @@ -315,6 +315,10 @@ function createLabels() { const pos = pack.states[id].pole const [x, y, z] = get3dCoords(pos[0], pos[1]) text_mesh.position.set(x, y + 25, z); + text_mesh.base_x = pos[0]; + text_mesh.base_y = pos[1]; + text_mesh.base_height = 25; + textMeshs.push(text_mesh) scene.add(text_mesh); }