   Picking meshes in C#
  hi friendsI'm switching from VC++ 6 (DX9), to Visual Studio 2008 C# (again DX 9), but I have some problems, one ic about mesh picking, I had implemented a very nice class for picking meshes in C++, but in C# it is a bit different, in C++ I used this function: D3DXIntersect(m_pObject, &vPickRayOrig, &vPickRayDir, &bHit, &dwFace, &fBary1, &fBary2, &fDist, NULL, NULL);but how can I perform that in C# (managed DX9)? I used my picking class to give the mouse click position, I want to perform this in C#, how can I do it? for example when I click my mouse on my 3d terrain, I want to have the exact click position returned in 3d space (I had it C++ working very nice). Any tips or tutorials?what about barycentrics (which give the exact collision point)thanks   
  First of all remember that Managed DirectX is discontinued by Microsoft (its basically a dead project), so switching to SlimDX (simply wrapper over DirectX) or XNA (if you need Xbox developing) should be advisable.From what i remember there should be something like Geometry.InstersectTri(parameters) inside Managed DirectX to do what are you currently trying to do. http://msdn.microsoft.com/en-us/library/bb296631(VS.85).aspx   