box2d-wasm icon indicating copy to clipboard operation
box2d-wasm copied to clipboard

C++ Version of LiquidFun integration?

Open KTRosenberg opened this issue 2 years ago • 2 comments

This seems to be the only attempt to re-merge LiquidFun into the latest box2d, but it seems to build a final wasm, rather than generating source files for inclusion in a project. Would you know if there is a way to get updated sources for integration in a C++ project?

KTRosenberg avatar Jan 17 '23 05:01 KTRosenberg

the WebAssembly is built from C++.
my fork of box2d's C++ has the liquidfun source manually-rebased onto it:
https://github.com/google/liquidfun/issues/81#issuecomment-787498634

Birch-san avatar Jan 19 '23 09:01 Birch-san

Ah, thank you for the link. Somehow I missed it. Is this something I could update with fixes from the main branch? Some things have been tweaked in the past few months. I might have missed some automatic script you might have used.

By the way, I assume this won’t really be supported in the long run. Version 3 was just announced and it’s going to have a major overall.

I wonder: is there a way to incorporate the essential elements of liquidfun (or some alternative liquid simulation) into the base branch without modifying the original source quite as significantly?

For example: instead of modifying function signatures, use a global context.

KTRosenberg avatar Jan 19 '23 09:01 KTRosenberg