Problems converting SceneNode into its correct type
Posted: Fri Mar 16, 2007 9:07 am
When I traverse the SceneManager's scene graph, I cannot seem to convert the children to their respective types.
What I mean is:
It crashes when I try to convert the node to an animated mesh scene node, giving me an error that the conversion is not possible. This really makes me think that someone forgot to inherit from something... 
What I mean is:
Code: Select all
SceneNode[] children = smgr.RootSceneNode;
foreach (SceneNode child in children)
if (child.SceneNodeType.ToString.Equals("Mesh"))
{
AnimatedMeshSceneNode mesh = (AnimatedMeshSceneNode)child;
}
