How would I have a ray not only from the camera but wherever the mouse in on the screen????? I edited the camera to allow a mode to free the mouse to be moved anywhere on the screen and I need to have a ray coming from wherever the mouse is on the screen...how do I do that? this is the code from the collision tutorial:
position2di pos = device->getCursorControl()->getPosition();
line3df ray = collisionMgr->getRayFromScreenCoordinates(pos);
What you would do with/to the line depends. For other collisions you would just use it as a parameter when calling the other collision manager methods. The code you showed normalizes and scales the ray but whether you need to do that depends on what you want to do with the ray-under-the-cursor once you have it.
"Computers don't make mistakes! What they do they do on purpose!!"