Archived

This topic is now archived and is closed to further replies.

danday1974

D3DXPlaneDotCoord

Recommended Posts

danday1974    122
Hi I have made a plane using D3DXPlaneFromPoints. I realise that the D3DXPlaneIntersectLine function informs you of the vector position at which intersection takes place between the plane and the line. I am now trying to use D3DXPlaneDotCoord to determine if the line is intersecting a triangle. However I cannot fathom what arguments to pass to this functions. I know that if the correct arguments are passed this function will return 0 if intersection is taking place. Could any1 help me with this please? Thanks Dan

Share this post


Link to post
Share on other sites
bit64    218
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dx8_c/directx_cpp/Graphics/Reference/CPP/D3DX/Functions/Mesh/d3dxintersecttri.asp

Share this post


Link to post
Share on other sites
bmoberly    122
Also, the pick sample that comes with the sdk has an intersect triangle routine that will show you how to detect whether a line intersects with a triangle.

Share this post


Link to post
Share on other sites