Problems getting AnimatedMeshSceneNode in .Net

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Stainless
Posts: 7
Joined: Sat Jan 06, 2007 1:54 pm

Problems getting AnimatedMeshSceneNode in .Net

Post by Stainless »

I am loading a level designed with irredit which contains several static meshes and a single animated mesh

I am attempting to get the scenenode for the animated mesh by

Code: Select all

SceneNode man=scene.GetSceneNodeFromName("Man");
This works okay, but I cannot cast it to an AnimatedMeshSceneNode to set the animation.
Stainless
Posts: 7
Joined: Sat Jan 06, 2007 1:54 pm

Extra data

Post by Stainless »

The SceneNodeType is AnimatedMesh.

but GetType returns SceneNode
Eldritch
Posts: 33
Joined: Mon Feb 26, 2007 12:33 pm

Post by Eldritch »

I am having the exact same problem. I cannot cast a read SceneNode into anything usable without the program crashing... using Irrlicht .NET CP for C#.
Post Reply