我正在尝试以下代码:
var loader = new THREE.OBJLoader();
var xpos = -80;
var ypos= 15;
var teethCount=0;
loader.addEventListener( 'load', function ( event ) {
var object = event.content;
teeth.push(object);
});
loader.load( 'obj/tooth1.obj' );
loader.load('obj/tooth2.obj');
for(var i = 0; i<32; i++)
{
teeth[i].position.x=xpos;
teeth[i].position.y=ypos;
scene.add(teeth[i]);
}
for 循环仅在我在其语句上设置断点时运行。任何建议