Disconnecting SceneNode from scene

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
kendric
Posts: 71
Joined: Tue May 29, 2007 9:05 pm

Disconnecting SceneNode from scene

Post 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.
Klasker
Posts: 230
Joined: Thu May 20, 2004 8:53 am
Contact:

Post 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.
Post Reply