Mouse Picking? with my Game Machine
I need help with what im doing wrong with my mouse picking. Getting the required info from the cursors x,y pixels, to building a ray, to intersection with AABB's ive spent quite abit of time on this and im not great at maths and this seems to be very hard so some help would great. Also you might be interested in checking out The Foxy Game Machine for future reference.
When i rotate the camera it messes up, it sortof works for non-rotations but then i have problems with AABB detection. The entire project has been recently released under license at www.fobbix.com/projects.php and www.fobbix.com/projects/foxy_game_machine.php. The important files to be viewed for this problem are.. In Template Project - Game.cpp (Rotation wise), In FoxyEngine - MathGL.cpp, Math.cpp, Map.cpp (PickTile) and Detect.cpp (GetPickRay) along with there .h files. I could list the sourcecode here but since ive released it there i dont really see the point.
And also ive done quite abit with networking - berkeley sockets TCP/IP and UDP/IP , and generally i need to know how to interrupt a thread though? - even though not apparent here but id thought id ask anyway.