0

I'm using Away3D 3.6 and I'm loading a .OBJ file and assigning it to an Object3D object.

e.g.

var obj:Object3D = Obj.parse( objData );
obj.rotationY = 35;
view.render(); // this renders the object with a 35º rotation

// (time lapse code)
obj.rotationY = 90;
view.render(); // this does not render the object with a 90º rotation, why??

There is a time lapse between the time that I apply a 35º rotation and the time that I apply a 90º rotation, but only the first is rendered. Why?

It works fine if I set obj = new Cube();

4

1 回答 1

0

添加事件监听器

addEventListener(Event.ENTER_FRAME, _handleEnterFrame);

然后在 _handleEnterFrame 函数中试试这个:

私有函数 _handleEnterFrame(ev : Event) : void { obj.rotationY += 1; _view.render(); }

为我工作。

于 2011-08-30T03:23:28.503 回答