Sign in to follow this  

Problems with Fluid Studio's Collision Detection

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

I've tried implementing the ellipsoid collision detection and response at Fluid Studio's website. http://www.fluidstudios.com/ The problem I'm having is that for some reason the collisions are never detected. I've tried writing it exactly as he puts it in his pdf, but I have had no luck. I know looking through source code is a pain, but I'd appreciate it if anyone could take a look and let me know what's wrong. I suspect the problem is in Collision.cpp in the intersect or intersectSphere functions, since I'm getting odd values from them. Geometry.h Collision.h Collision.cpp main.cpp

Share this post


Link to post
Share on other sites
Yeah, I accidentially deleted them, they're back up now.

Basically what is wrong is if I place a wall in the scene, and then place the camera about 100 units above it but have it intersect the 'plane', but not the actual wall......the collision code keeps saying it is intersecting the wall when its really not.



[Edited by - oconnellseanm on October 2, 2004 12:34:41 PM]

Share this post


Link to post
Share on other sites
well its really hard to tell for any of us. the best advice i can give you is to add more debug info: output all intermediate data, and if you have a grip on whats actually going on mathwise you will be able to tell which numbers are way off from what they ought to be for the given situation.

Share this post


Link to post
Share on other sites

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