Fix: States labels adapts to height scale

This commit is contained in:
Rayzeq 2021-06-25 09:28:11 +02:00
parent 30ab1217a8
commit 58ad13cbfd

View file

@ -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);
}