Jump to content
  • Advertisement
Sign in to follow this  
ongamex92

Ellipsoid Triangle Sweep Test troubles.

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

 
 
OK so there are people around the internet who claim that they can implement this collision detection alogorithm(http://www.peroxide.dk/papers/collision/collision.pdf) without
additional intersection check...
 
In details this is a standard collision detection technique suitable for jump'n'run games like Rayman. The technique describes all the the moving entities with
elliposid, and all the static obsticles with tri-meshes. and then when moving those ellipsoids a "unit sphere - triangle" sweep test is performed.
The sweep test in theory should give us a maxumum allowed travel distance without any intersection with any triangle.
 

Soo.. I've implemented this and I't works amost eveytime,but sometimes when the sphere *accidentaly* gets too close to a triangle I get stuck, not able to move(sweep test always returns an intersection at moment t0=0.0f). This could
be an error in my Sweep test implementataion (i still cannot find it) or it could be in the "sliding" implementation but certanly the floating point percison helps...
In order to *cure" this isse I've implemented a function that intersects a sphere with a triangle and returns a vector that will "push" the sphere out of the triangle.
 
So my question is:
 
Have any of you implemented this technique without "fixing" the situation with intersection tests(or ?ny analogue)?
 
 

?

Edited by imoogiBG

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!