Hi,
Did I read somewhere that you can store data in a scene node? Or was that only for xml save / load?
Thanks
User Data in Node
Re: User Data in Node
You can do that in many ways. Even if there was a "userdata" method, you should avoid using it like garlic (what if later you need further data but the node stores only 1 data)?
In example you could create a class that has your scenenode stored as a pointer and inherit from ISceneNode, then forward all ISceneNode methods by calling the ones on the pointer..
It all depends on what you are trying to achieve and how is pre-existing code. And what data you need (custom data? or just load/save ability for existing nodes?)
In example you could create a class that has your scenenode stored as a pointer and inherit from ISceneNode, then forward all ISceneNode methods by calling the ones on the pointer..
It all depends on what you are trying to achieve and how is pre-existing code. And what data you need (custom data? or just load/save ability for existing nodes?)
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Re: User Data in Node
That's sort of what I've done, have an Obj class with pointer(s), etc...
Thanks
Thanks
Re: User Data in Node
It is better to have a scene node among your data, in your own class
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt