When should I extend ISceneNode?

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
LukeBitts
Posts: 21
Joined: Fri Apr 22, 2011 6:02 am

When should I extend ISceneNode?

Post by LukeBitts »

I was wondering, when should I extend ISceneNode (or IAnimatedMeshSceneNode or [...])? Only when I want a special rendering on my object? Or anytime I want a node to hold more information? Should my custom objects be just an object with a pointer to the node, or should they BE the node?

Thanks :)
CuteAlien
Admin
Posts: 9943
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: When should I extend ISceneNode?

Post by CuteAlien »

Theoretically both are possible. Personally I think it's far nicer to have a custom object with a nodepointer.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Brainsaw
Posts: 1242
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: When should I extend ISceneNode?

Post by Brainsaw »

I use custom scenenodes a lot, mainly to move definition of some parameters to the editor (physics information...).
Image
Dustbin::Games on the web: https://www.dustbin-online.de/
Post Reply