Add as Mesh once loaded and not before its loaded.

Fabrice

On Sep 14, 2010, at 11:11 AM, bebensiganteng wrote:

> hi guys,
> 
> is there something wrong with my code?
> 
> _collada = new Collada();
> _collada.centerMeshes = true;
> 
> _loader3d = Collada.load("crate.dae" );
> 
> _loader3d.addOnSuccess(onLoaderSuccess);
> _tree.addChild(_loader3d);
> 
> private function onLoaderSuccess(e:Loader3DEvent):void
> {
>       var target:Object3D = ObjectContainer3D(e.loader.handle);
>        target.scale(30);
>        trace(target);
> 
> }
> 
> although i can trace target but i cant seems to see it, or is this not
> the correct way to add collada to the BSP tree?

Reply via email to