Hey Fabrice, in another Thread you said, that objects like doors,
chairs, tables etc should be added to the tree after using the bps
generator and set collider = true. thats all i have done, but this
doesnt work when adding an object from prefab as as3-file. the object
is added to the tree and shows up but doesnt collide. can you please
help me :)

On 23 Nov., 12:54, le_unam <[email protected]> wrote:
> hmm now i did it with the for-"function" and the whole object is
> shown, but the collision detection doesnt work. i tried
> object.collider = true; and i also tried object.meshes[i].collider =
> true; nothing works.
>
> On 23 Nov., 12:39, le_unam <[email protected]> wrote:
>
> > hey fabrice, thank you ... this works good, but now only one mesh of
> > my object is shown. is there a way to automatically add all mehses of
> > the object or do i have to find out how many meshes my object does
> > have and do it with for(....){ .... } ??
>
> > On 23 Nov., 12:20, Fabrice3D <[email protected]> wrote:
>
> > > If you have exported the AS3 from Prefab
>
> > > var holder:PrefabClass = new PrefabClass();
> > > _tree.addChild(holder.meshes[0]); //the as file meshes array contains 
> > > ONLY meshes
>
> > > Make also sure the model is IN the bounds of your tree model, if you add 
> > > the model outside the "walls" or if a part of it is outside
> > > it will probably not be considered for render.
>
> > > Fabrice
>
> > > On Nov 23, 2010, at 10:58 AM, le_unam wrote:
>
> > > > Hey, did anyone successfully add an obj oder as3 export from prefab
> > > > into the bsp tree?
> > > > i still have the problem that my obj only shows up when adding it to
> > > > _view.scene but not _tree.
> > > > i know that the bsp tree is not able to show objectcontainer3d, but
> > > > i`m nearly sure that my obj is no objectcontainer3d. how can i trace
> > > > the type of my object?
>
> > > > greets manu
>
> > > > On 22 Nov., 12:43, Tony Brown <[email protected]> wrote:
> > > >> thanks for the link this will help me :)
>
> > > >> On Thu, Nov 18, 2010 at 3:52 PM, John Wilson <
>
> > > >> [email protected]> wrote:
> > > >>> Hi,
>
> > > >>> Look at:
>
> > > >>>  http://john-wilson.110mb.com/bsp_tutorial/bsp_tutorial_index.html
>
> > > >>>  the ActionScript part of the tutorial may help.
>
> > > >>> Regards,
>
> > > >>> John Wilson
>
> > > >>> On Nov 18, 2:12 pm, le_unam <[email protected]> wrote:
> > > >>>> the code i use in my main class for adding my obj file is the
> > > >>>> following:
>
> > > >>>> import away3d.loaders.MyMan;
>
> > > >>>> private var superMan:MyMan;
>
> > > >>>> superMan = new MyMan(10);
> > > >>>> _tree.addChild(superMan);
>
> > > >>>> is this the correct way to add objects or did i something wrong?
>
> > > >>>> On 18 Nov., 13:19, le_unam <[email protected]> wrote:
>
> > > >>>>> Hey ... i tried a little bit with adding an obj to the bsp tree and 
> > > >>>>> it
> > > >>>>> doesnt work for me ^^
>
> > > >>>>> the model is shown when i take _view.scene.addChild but not when
> > > >>>>> adding to the tree _tree.addChild. I searched in this forum and 
> > > >>>>> found
> > > >>>>> that i should load the obj into prefab and export an as3 file. i did
> > > >>>>> this and imported the class into my main class but then it is the 
> > > >>>>> same
> > > >>>>> issue. the model is only shown when adding to _view.scene, but not 
> > > >>>>> to
> > > >>>>> the tree.
>
> > > >>>>> any ideas? = /- Hide quoted text -
>
> > > >>>> - Show quoted text -

Reply via email to