You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers. No questions about C++ programming or topics which are answered in the tutorials!
In the API it says that if the getSceneNodeFromRayBB() function doesn't collide with a node then it should return 0 or NULL. I tried doing an if statement to select the previous node if it doesn't find anything but for some reason it's not selecting the node previously. Does anyone know of any reason why Irrlicht would return anything other than 0 when it doesn't find a result?
After looking at the code for getSceneNodeFromRayBB(), it seems to me that it should return 0 if there wasn't a node found. I have not yet tried this function so I don't know from experience (cause I use ODE to find my collisions), but I'll give it a shot for you if you still have problems.
Well, I outputted to the console and it definatly isn't returning anything when it doesn't find anything. I'm going to have to find some way around it, oh well, cheers for the help anywayz.