CountChildren finding only root child

Blitz3D Forums/Blitz3D Programming/CountChildren finding only root child

Drackbolt(Posted 2004) [#1]
Here's a wierd problem... I use Milkshape and export to B3D. CountChildren returns only the root joint, but FindChild can pick up any given joint of the model by name. I searched the forums and couldn't find anything on this. It's killing me because it would really speed up hit locations and some other stuff. Thanks for any help!


Klaas(Posted 2004) [#2]
Those models got a hirachy

root
- Node1
- Node2
- - subnode1
- - - subsubnode1
- Node 3
- - anotherSubNode

so, if you countChildren on root you will get 3 nodes (Node1,Node2,Node3) .. if you counchildren on Node2 you will get 1 , only the subnode 1.

countChildren(node) only returns the direct childs of the node


Drackbolt(Posted 2004) [#3]
Nicely done, thanks very much! I'll try this immediately.


Beaker(Posted 2004) [#4]
You might find this useful:
http://www.blitzbasic.com/codearcs/codearcs.php?code=796