From a3b0713b7acc7fbbe93f5339eaf8de4d4a232d12 Mon Sep 17 00:00:00 2001 From: adrien Date: Sun, 25 Jan 2026 15:01:29 +0100 Subject: [PATCH] InstancedMino translation --- jsm/Tetrominoes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsm/Tetrominoes.js b/jsm/Tetrominoes.js index 5afe3ca..28b256b 100644 --- a/jsm/Tetrominoes.js +++ b/jsm/Tetrominoes.js @@ -73,9 +73,9 @@ const sideMaterial = new THREE.MeshStandardMaterial({ export class InstancedMino extends THREE.InstancedMesh { constructor() { const roundedBoxGeometry = new RoundedBoxGeometry(1.03, 1.03, 1.03, 4, 0.15) - roundedBoxGeometry.translate(0.5, 0.5, 0.5) super(roundedBoxGeometry, undefined, 2*ROWS*COLUMNS) this.offsets = new Uint8Array(2*this.count) + this.position.set(0.5, 0.5, 0.5) } set theme(theme) {