Here's my collision to get a ray to use for collision from 2D coordiantes ( the mouse position ). For some reason this chunk of code is crashing the program back to desktop, has someone else had the same thing ( and found a solution ) ?
Ummmmmm, you are using several pointers with out creating objects for them to point to.
For example you define a pointer to a ISceneCollisionManager; But never create a collision manager for it to point to This is not a problem until you try to access the colllision manager it points to, however it doesn't point to anything(Well some random space in memory but nothing useful). This is cause a crash probibly because of an illegal memory usage. Also you do the same thing with several other objects. The only ones you have done right is cursorPos and selectedSceneNode;
Maybe look over the tech demo it covers ray casting I think for the rockets that are fired.
I implemented the collision manager, but the problem is the ray that is being created from scene coords, I can't see anything wrong with it. cursorPos is implemented in this funtion and camera is a global variable that is implemented in main() before this funtion is called.