Jump to content
  • Advertisement
Sign in to follow this  
r@ph

Collision detection with mesh

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

HI ! How to handle collision detection with a mesh representing the world ? I am making a racing game and I import the level from 3ds it contains some loops and some other cool stuff the problem I have is how to handle collision detection between my car and the level ?? I have built an octree and I perform some ray - triangle intersection but for the looping how to prevent that the car goes on top of the loop

  _*_ <--- the car 
 /   |
 |   |
__\_/_____




I have another pb this is with some jump
          _______
     /    * <--- the car arrive just below the level how to prevent that the 
____/            collision detection put the car above?




Thanks in advance !

Share this post


Link to post
Share on other sites
Advertisement
If I understand your problem correctly, then you'll have to cast your intersection ray from a local orientation instead of globally.

Share this post


Link to post
Share on other sites
Well, if the you keep track of the direction and speed of the car then you could dedect when an unusual jump in the cars postition would occur and take the other intersection,

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!