Jump to content
  • Advertisement
Sign in to follow this  
Code Fusion

3d collision detection (ray intersection)

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

so iam having a little problem deciding how to handle collision with the enviroment. i wanted to create ray intersection with the polygons of the model. so i accessed the data of the vertex , and index buffers associated with the model , calcualted the normals of each triangle , then created the plane eqn , and stored the data in an array.when an object moves , i brute force throught the array to see if a point on the ray intersect a polygon , and i get on with contemplating a proper collision response.now i need some openions ragarding the algorithm , and any sugestions . thnx. p.s : i know about bounding objects , but iam creating this for projectiles , and camera.

Share this post


Link to post
Share on other sites
Advertisement
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!