I've implemented a grid-based 3D fluid simulation and I'm trying to integrate it with bullet so I can have rigid bodies in the fluid.
For this I have to interface the forces in two ways: from fluid to solid and from solid to fluid.
The solid object method I'm using expects the object velocity for every raster position where the solid intersects, which I'm getting from getVelocityInLocalPoint().
However, how should I apply the momentum of the fluid to the rigid objects? I'm currently using applyImpulse() (once per fluid node interfacing with the rigid body) once per frame, but is that the right way to do it? I'm running into a lot of troubles, where the rigid body bounces around without any external forces applied. Maybe applyForce is the one suitable for this?
Generally, what are the units used for all these methods (provided that one spatial unit is 1m and one temporal unit is 1s)? The force I can calculate from the fluid grid is in Newtons per frame (which is easy to translate into Newtons per second). I guess getVelocityInLocalPoint returns ms^-1, right?
Any help would be greatly appreciated. I've been working on this problem for a whole month now
