Swap Nodes at Runtime

hi,



I try to remove a node from my root node and attach another one at runtime. But the one I add isn't visible. When I add this node in the initGame() it works, but when I add it in the update method it isn't visible. The nodes which stay in the root node when I swap the two nodes stay visible. Why did this happens? How can I fix it?



Thanks,

campino

Most probably you miss some updates, look here: http://www.jmonkeyengine.com/wiki/doku.php?id=updatefuncs

Galun said:

Most probably you miss some updates, look here: http://www.jmonkeyengine.com/wiki/doku.php?id=updatefuncs


That was the mistake, thanks