Jump to content
  • Advertisement
Sign in to follow this  
NightCabbage

Unity Mouse selection in a 3D world (cont)

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

Continued from: http://www.gamedev.net/community/forums/topic.asp?topic_id=472952 So just out of interest... can (should) you use D3DXIntersect for this task? Or is that unrelated...? Or is there just a better method for doing this?

Share this post


Link to post
Share on other sites
Advertisement
You can use D3DXIntersect for picking. Or you can make your own code that "transforms" 3d world in 2d canvas, and loop through triangles checking which triangle is passing through your picking ray, and if there are more of them which one is closest to camera.

There is D3DXIntersect example in DXSDK.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!