Page 1 of 1

Disconnecting SceneNode from scene

Posted: Wed Jul 18, 2007 3:29 pm
by kendric
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.

Posted: Wed Jul 18, 2007 4:13 pm
by Klasker
You could try:

Code: Select all

node->grab();
node->remove();
When you want to add it again, just use setParent and make sure you drop it after that.