-2
\$\begingroup\$

How to calculate direction for D3DXIntersectTri function to find intersected point? And after getting the result in Distance how to get that coordinate(XYZ)?

\$\endgroup\$
0
\$\begingroup\$

All of this is in the documentation for your function.

\$\endgroup\$
  • \$\begingroup\$ Pls, Provide some simple example for it. I've googled by not found simple example. \$\endgroup\$ – Ganpat Apr 8 '13 at 6:50
  • \$\begingroup\$ There will not be an example for every use case that you need. What part of the documentation is unclear? \$\endgroup\$ – Mokosha Apr 8 '13 at 14:37
  • \$\begingroup\$ HOW TO CALCULATE DIRECTION? AND HOW TO GET NEW INTERSECTED POINT FROM DISTANCE RETURN BY THIS FUNCTION? \$\endgroup\$ – Ganpat Apr 9 '13 at 5:32
  • \$\begingroup\$ If you pass vectors p and d as ray position and direction, the returned value in pDist will tell you how far along the ray the point of intersection is. You can retrieve it by computing p + pDist * d assuming d is normalized. Also, it would be good to refrain from using all caps in your posts. \$\endgroup\$ – Mokosha Apr 9 '13 at 20:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.