btHfFluid and broadphase

MadPianist
Posts: 4
Joined: Tue Jun 15, 2010 11:54 pm
Location: Wellington, New Zealand

btHfFluid and broadphase

Post by MadPianist »

Hey guys,

I've been doing a bunch of work on the height field fluids that come in the demos folder. I'm at a point where everything works the way I need it to apart from a mysterious issue with the broadphase step. No pairs are generated when a buoyant shape enters the fluid from outside its aabb. if I add the collision objects to the world with the aabbs overlapping already, all is good. but after, if the object leaves the fluid aabb and then comes back in, no pairs will be generated.

I'm using the dbvh broadphase.

Using the debug draw I am able to verify that the aabb for the height field fluid is valid and is updated every simulation step.

-Ronnie
MadPianist
Posts: 4
Joined: Tue Jun 15, 2010 11:54 pm
Location: Wellington, New Zealand

Re: btHfFluid and broadphase

Post by MadPianist »

Well, with a lot more digging I found my problem. My broadphase overlap callback was breaking this.