c# ISceneNode Inherintance (like 03.CustomSceneNode in c++)
Posted: Wed Jun 01, 2005 1:55 pm
Hello all, I'm playing around wiht Irrlicht in c#.Net and exploring the possibilities of this extremely fast engine.
At the moment I'm trying to create a new class which inherits it's members from ISceneNode, but I haven't found a way to do this. (just like the example 03. CustomSceneNode in c++)
So my question is: am I doing something wrong, or is this not possible (yet) and should I change the c++ source code for it? I can change the c++ source, but prefer to make my inheritence in c#.
So basicly what I'm trying to do is:
but as you can see above, I don't know what the give to the base constuctor... I can change this in c++, but haven't got enough experience in c# to know if there is a solution for this in c# as well.
It seems to me that there now also isn't a way to create a new ISceneNode. Of course you can create several with the SceneManager, but not your own.
Any help would be appreciated
At the moment I'm trying to create a new class which inherits it's members from ISceneNode, but I haven't found a way to do this. (just like the example 03. CustomSceneNode in c++)
So my question is: am I doing something wrong, or is this not possible (yet) and should I change the c++ source code for it? I can change the c++ source, but prefer to make my inheritence in c#.
So basicly what I'm trying to do is:
Code: Select all
public class ExtendedSceneNode : ISceneNode {
ExtendedSceneNode() : base( ???* realSceneNode??? ) {
}
}
It seems to me that there now also isn't a way to create a new ISceneNode. Of course you can create several with the SceneManager, but not your own.
Any help would be appreciated