quote:Original post by ktuluorionOriginal post by DoolwindOriginal post by ktuluorion
Basically what i need to do is find a way to figure out what block the mouse cursor is on top of.
Sorry I didn''t read the post exactly . I was thinking you would be doing this whenever you clicked the button.
Anyway, just try it out the simplest way and you can always optimize later (with the binary search). I would not be suprised however if it runs just fine checking every cell every frame.
Doolwind
The only thing is that function doesn''t exist. There is one called D3DXIntersect, but it works on Meshes, and that won''t work.
OK, the function DOES exist, just its in DX 8.1. I''m running 8.0. on this machine. Time to upgrade