Sign in to follow this  

Ellipsoid Triangle Sweep Test troubles.

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this