Ok, just to be clear, I do not ask for code!
I want to CREATE (not copy/paste) a RTS-like Camera, but I don't know which is the best way.
- create own camera like the one in the Wiki (that don't work with 1.5 even after corrections from me)
- create own camera based on Maya Camera (is it less work than the solution above?)
- create a wrapper around a standard-cam with an IEventReceiver
Atm. I would prefer the last solution, because I don't want to handle inputs on more than one place.
What do you think?
The reason I want to create an own cam is, that it should be not exactly an RTS-Cam but ver much like it.
Suggestions about building a custom camera
You have two possible ways: Inheritance or Composition.
In case of inheritance you have to base your camera on ICameraSceneNode which is mere interface so you need to implement everything yourself from scratch. Or you can copy and paste code from CCameraSceneNode and other camera scene nodes which inherit from it like CCameraFPSSceneNode. You can't inherit from them directly.
In my opinion composition is much more practical in this case. Just enclose one of the Irrlicht camera nodes inside new class and provide functions and controls you need. I did it myself and it worked very well.
In case of inheritance you have to base your camera on ICameraSceneNode which is mere interface so you need to implement everything yourself from scratch. Or you can copy and paste code from CCameraSceneNode and other camera scene nodes which inherit from it like CCameraFPSSceneNode. You can't inherit from them directly.
In my opinion composition is much more practical in this case. Just enclose one of the Irrlicht camera nodes inside new class and provide functions and controls you need. I did it myself and it worked very well.