getSceneNodeFromRayBB Return

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!
Post Reply
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

getSceneNodeFromRayBB Return

Post by Tyn »

Hey

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?
guest1

Post by guest1 »

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.
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

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