Is there an easy way to get a certain type of children of a node ?
Say I have a spatial node with children of different structure, ex:
spatial node: (3 children)
- Enemy 1 => 2 rigid bodies, 3 meshes
- Enemy 2 => 1 rigid body, 1 mesh
- Enemy 3=> 3 rigid bodies, 5 meshes
I want to "select" a certain type of Enemy children and do a modification,
ex: set mesh textures to null, or change rigid body to static...
Is there an easy way to do that, without looping over each enemy manually and so on?
Thx in advance