this is all you need, no loop and no array is needed !!!
Working fine but only for one node. Tryed also in the loop with terrain etc. but not working. I have many trrees on my scene and wanted them to colide. It's like working on the same "tree1" again. Tryed also with GetSceneNodeFromId(2); and i gave all my trees Id 2, not working too
Of you have many nodes with the same name, then you can't reliably search for them by name and get the right one, or all of them. You are likely to get the same node over and over again. You need to enumerate all of the scene nodes with that name, not just the first one. There is code in the 15.LoadIrrFile tutorial that does just what you need. I also wrote some code here that does the same thing just in a different way.