InstancedMino translation

This commit is contained in:
2026-01-25 15:01:29 +01:00
parent e3c0af65ba
commit a3b0713b7a

View File

@@ -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) {