• Advertisement


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

Ray Picking & 3D Coords

This topic is 5746 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

I''m working on a program with ray picking. I have a huge plane, that serves as my ground plane and a character that should run around on this ground plane. Now, i want to click with the mouse anywhere on this plane and then let the character walk to that "clicked" point. I have the ray picking up and running, and i have calulated the directional vector and everything, but when i test for intersection of the Ray and the plane with D3DXIntersectTri, the function return Barycentric Hit coordinates. How do i convert those Hit Coords to a 3d point and let my character walk there? anyone?? thanx, idx to code or not to code, that is the algorithm

Share this post

Link to post
Share on other sites

  • Advertisement