Is there a good way to have a scene node ready in memory, but not put into the scene until a later time.
I tried setting the parent to null but that borked things up with setVisible, probably other things too.
I just don't want the node considered for things like collisions etc but I want it to be in memory ready to go.
Any ideas?
Thanks.
Disconnecting SceneNode from scene
You could try:
When you want to add it again, just use setParent and make sure you drop it after that.
Code: Select all
node->grab();
node->remove();