Jump to content
  • Advertisement
Sign in to follow this  
Geeman

Collision for Jakobsen article

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

Ive been reading through Jakobsen 'Advanced Character Physics' article for the past few days so I can implement some of his ideas into my 3d simulation. I am at section 6, and it talks about collision response. It does not go into detail about the collision detection method he is using and I would like to know what articles are avaiable for collision detection for his paper. I need to find out the penetration depth from a collision check against a ray and a 3D object. I don't know where to find such information about this. Currently I'm just doing a simple ray-polygon check to see when there is a collision and bouncing the two particles in the direction of the polygons normal, and ignoring the pentetration depth altogether. Not a good idea as a ray can pass through multiple polygons thus I could be bouncing the particles in the wrong direction. The idea I have come up with is to do a cylinder-cylinder collision check, 1 cylinder for the ray, and 1 cylinder for an edge of two polygons, but I can't seem to find any information about such a method. Any help is appreicated FYI, it for a cloth simulation, but I want to the collision to work with the cloths edges and not just its points.

Share this post


Link to post
Share on other sites
Advertisement
And if my text wasn't clear enough. here is a movie file demonstrating what I am trying to do

http://www.spot4d.co.uk/0x47/colprob.mov ~500k

Share this post


Link to post
Share on other sites
You can do a Ray-Quad collision test 6 times with each side of the cube. This will get you a lambda value which represents the distance from the starting point of the ray which you test to see if it is less than the length of the rod.

Look up some raytracing tutorials which detail ray-triangle/plane testing.

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!