Jump to content
  • Advertisement

Archived

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

danday1974

D3DXPlaneDotCoord

This topic is 5744 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!