-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature request] liquidfun support #8
Comments
Can you please provide some links and material about this? so we can understand better your request? |
http://google.github.io/liquidfun/ |
I really think it would be awesome to have Liquidfun! I can definitely help! Sometime ago I gave some thoughts on doing this... Since it is a C++ lib it was a bit harder than integrating Box2D (already in Dart). The link below gives info on how to build it for different platforms. We could integrate it as a channel and create a Dart generator to expose the C++ API on Dart. Can be hard but maybe it can be done. Thoughts? |
It seems to be supported on both Android and iOS, as well as desktop, my only concern on using channel APIs is that we will have some trouble porting to desktop and maybe web. I see two paths:
I have no idea which idea would be better, or easier, I know the recent dart versions has the possibility to integrated with native stuff easily using ffi, but I never tried it myself. And I don’t know how complicated this library code is to have it ported to dart, the good thing about this approach is that we wouldn’t need to change anything for desktop and web. |
There is the DART native FFI which as an interface between dart code and c++. I got this sample running: We can do something like that perhaps. |
Jbox2d https://github.com/jbox2d/jbox2d/tree/master/jbox2d-library/src/main/java/org/jbox2d already seems to have particle ported... does the dart port of box2d predate that or was it omitted? |
@billy1380 I was unaware that particle means liquidfun. we do have some particle related classes on box2d.dart from when it was ported. @renancaraujo @spydon do you know anything about this? maybe we had liquidfun support all along and didn't know? |
No, we don't have liquidfun support. |
Actually I think I was wrong, I think we have liquidfun support.
|
Maybe what we need them is just an example to showcase some liquidfun specific functionality? That will also ensure our port of a port works as intended. @renancaraujo or @spydon would you like to think of something? I myself am a bit unclear on the exact distinction of both, I originally thought it was a totally different project but it seems it was something that was eventually merged into box2d itself. |
Alright, so I did some more investigation regarding this and we have liquidfun support in the world, but we have no support to render the particle system yet. |
Hey, what is the situation with the Liquid fun support? 🤔 |
It depends on what part of LiquidFun you mean, I am updating the particle system at the moment in #7 |
I'm not very familiar with the project specifics. I was wondering if it was possible to use LiquidFun with Forge2D? Or rather after you are done with updating the particle system? |
LiquidFun is built on top of Box2D in C++, and Forge2D is a Dart port of jbox2d, to simplify it. |
Would be cool to be able to do: |
To do what? There are a lot of examples under that link, some which can already be done, some which has functionality that aren't implemented yet. |
I would like to have all the functionality of liquidfun I want to implement fluid dynamics in my 2d game |
If is possible to implement it, would be a great option...
thanks to all the Devs involved
The text was updated successfully, but these errors were encountered: