data中有cube1,cube2,cube3…
逻辑中循环根据下标,取对应data中的某个变量,并改变此变量的值
this['cube'+i]
其中i为下标
this['cube'+i].position = new THREE.Vector3(x, y -150+this.oneFloorHeight/2, z)
data中有cube1,cube2,cube3…
逻辑中循环根据下标,取对应data中的某个变量,并改变此变量的值
this['cube'+i]
其中i为下标
this['cube'+i].position = new THREE.Vector3(x, y -150+this.oneFloorHeight/2, z)