Advertisement Jump to content
Sign in to follow this  
Code Fusion

3d collision detection (ray intersection)

This topic is 4547 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!