Jump to content
  • Advertisement

Archived

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

idx14

Ray Picking & 3D Coords

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

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!