setVisible and parent

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
Kaki
Posts: 41
Joined: Thu Oct 12, 2006 12:19 pm
Location: France

setVisible and parent

Post by Kaki »

Hello

I have some meshes which are linked to a cube.
Or I don't want that the cube is visible.
I do : cube.setVisible(false)
But all meshes are unvisible

How can I proceed ?
runelord
Posts: 13
Joined: Sat Jan 21, 2006 10:37 am

Post by runelord »

if the cube is invisible at all times you can use an empty scene node instead of a cube. With emtpySceneNode = smgr->addEmptySceneNode() and append all visible meshes to it. :)
Kaki
Posts: 41
Joined: Thu Oct 12, 2006 12:19 pm
Location: France

Post by Kaki »

Thanks
Post Reply