Hello, I cannot push and read double array - what to do?
ShapePicker.prototype.initialize = function() {
this.entEnLrg = [[],[]]; this.entEnLrg[0]=[]; this.entEnLrg[1]=[];
};
ShapePicker.prototype.update = function(dt) {
this.doRayCast(event);
this.updateTime = Date.now();
if(this.updateTime-this.startTime >7000){
this.entEnDel.forEach(this.findAlleToDELsmaa);
}
if(this.updateTime-this.startTime >10000){
for(j=0;j<this.entEnLrg.length;j++){
console.log("this.entEnLrg[j][0]: " +this.entEnLrg[[j]][0].name+" : "+this.entEnLrg[[j]][1]);
this.entEnLrg[[j]][0].setLocalScale(
this.entEnLrg[[j]][0].getLocalScale().x*this.entEnLrg[[j]][1],
this.entEnLrg[[j]][0].getLocalScale().y*this.entEnLrg[[j]][1],
this.entEnLrg[[j]][0].getLocalScale().z*this.entEnLrg[[j]][1]);
}
}
};
The double array is pushed like this:
this.entEnLrg[0][0]=entTmp2; this.entEnLrg[0][1]=EnLrgFct; this.entEnLrg.push(this.entEnLrg[0][0], this.entEnLrg[0][1]);