Jump to content
  • Advertisement


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


Hit Detection/Meshes( mesh as ground? )

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

VB6 perfered. But should be able to understand in c++ terms. I have been attempting to use the d3dx.intersect for hit detection on a mesh, for placement of my ''camera'' when moving. What I have been doing is using the y cord of my eye for the first perameter and - 7 of the y cord for the second. Then testing for a hit on the mesh and retrieving the distance. Once having the distance I attempt to readjust the distance, until the eye is at the proper height. It kind of works... but I appear to be missing a concept or something.First it does not always glide across the terrain as nicely as I had hoped.Sometimes where the terrain goes down , the view would go up instead or not change. There is also something weird with the distance itself that is ackward to me also.Maybe that can be explained, and how would I convert it to something more useful? ( yep, already know I should be testing hits for things such as slopes and walls ) Maybe I just need a better understanding of the function d3dx.intersect? or another option ?

Share this post

Link to post
Share on other sites

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