Yeah, that entry is based on your post. My work would be to ensure that it works in all situations (e.g not sure about CCD), and then update the library so you can just return a different value to filter. And decide which of your two proposed methods is better.
Yes, I'm aware of that, but I was personally more interested in a particle-like method, rather than accurate cutting. Sorry, I know that what you've done is the standard solution, and what people expect when you say buoyancy, and the easiest approach given it is already written, and no doubt more reliable than what I plan, but I'm only offering to do things which are sufficiently interesting to me, rather than necessarily useful or good. Again, sorry. If people don't like that, they should vote for something else.
But I'll still totally rip off the applicable parts of your code, if you don't mind. (I'm not sure I'd be able to sort out the drag formulae on my own).
I've been using revolute joints with lower and upper limits set to zero, and they seem to work reasonably well as a substitute. A dedicated weld joint might be more efficient, though.
Yes, the trick with revolute joints works fine. So the advantages of a weld joint are small. It would be more efficient, but barely, and clearer and easier to use. And as I said, in the same project I'd do an XWeldJoint, which would be the same thing, only with an arbitrary XForm thrown in, as this is basically the same amount of work. I might also give a shot at a WeldJoint that covers multiple shapes, instead of just two, for use with things like Katamari knock off. But like the current Gear joint, it wouldn't fit into the API very well.
As you guys are pointing out, none of these suggestions are very innovative, or ground breaking. But they are "nice to have" things, I think.
I voted weld joint because it's the thing I need in the engine right now (or at least a suitable fudge for - I've not had much luck in getting advice, so far 🙁 ), for my game to be able to progress. But longer-term, buoyancy (and, in fact, anything at all that can be done to simulate fluids) would be an amazing addition to the engine.