开发者

Why can't I move a Collada model after I add it to the view in Away3d?

I have a Collada (.dae) file that I found on Google's 3d Warehouse. Using Away3d, I'm able to load the file and display it开发者_C百科 on my view using the following code:

var object3d = Collada.parse(FooXML, { material:"white", x:0, y:0, z:0 });
view.scene.addChild(object3d);

The problem is that it's just floating out in space and no matter how I adjust the position via .x, .y, or .z, it never moves from its spot.

I'm using Flash cs4 and the latest stable release from Away3d.


are you re rendering the scene after translating the collada object?

how are you trying to translate the object? if you need to move it then you should set it in the init object eg: (FooXML, { material:"white", x:100, y:100, z:-70 }).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜