Jump to content
  • Advertisement

Archived

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

VBSmiles

Hit Detection/Meshes( mesh as ground? )

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

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!