Jump to content
  • Advertisement
Sign in to follow this  
jammy5202

D3DXIntersect problem

This topic is 4478 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 am trying to use D3DXIntersect to do collision detection between two meshes. The problem i am having is with the first parameter LPD3DXBASEMESH pMesh, the meshes that are in LPD3DXMESH format is there a way to convert the mesh type. Also does it only return the closest triangle to intersect the ray? I am producing the a ray from each vertex of the first object for the position? For the rays direction vector i am using the velocity vector normalized. I am not sure if this is correct as i have not been able to find much online about it.

Share this post


Link to post
Share on other sites
Advertisement
The function will accept a mesh of type LPD3DXMESH because the LPD3DXBASEMESH is the base type and it can be back casted automatically.

Dave

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!