Child entity

Blitz3D Forums/Blitz3D Programming/Child entity

Eole(Posted 2004) [#1]
Hi !

Just a little question

I have some meshs, and I want to create only one mesh, but all objects must be a child object ! (addmesh create a new object, not an object with child)

Is it possible ?

Or I must do it during the export in B3D ?


Deldy(Posted 2004) [#2]
Well if I get the questuin right, then you have a scene in 3dsmax for instance. You have some objects. Let say a house with a door, walls, roof and a window.

Lets say your mission is to open the door.

There are more ways to do this, but for you, you whant to do it in code.

Sooooo. You create your scene, makes the object, export it to whatever format that blitz can load. And then you sould use LoadAnimMesh

AnimMesh loads the scene, but keeps the objects as childs, so you can find the child door by doing:

door = FindChild(model,"door")



Hope that helps