Skip to content
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

add liquid simulation #2942

Closed
iBinbro opened this issue Dec 21, 2023 · 3 comments
Closed

add liquid simulation #2942

iBinbro opened this issue Dec 21, 2023 · 3 comments

Comments

@iBinbro
Copy link

iBinbro commented Dec 21, 2023

I am learning forge2d recently, box2d is really shocking, LiquidFun is also developed from box2d, it would be great if LiquidFun can also be integrated.

@spydon
Copy link
Member

spydon commented Dec 21, 2023

Duplicate of flame-engine/forge2d#8

@spydon spydon marked this as a duplicate of flame-engine/forge2d#8 Dec 21, 2023
@spydon spydon closed this as completed Dec 21, 2023
@iBinbro
Copy link
Author

iBinbro commented Dec 21, 2023

Duplicate of flame-engine/forge2d#8

I found that the particle system of forge2d seems to be used to achieve fluid effects, but I have not seen any examples of the particle system of forge2d being used in flame. My abilities are limited. I tried using forge2d particles, but I didn’t see any effect.

@spydon
Copy link
Member

spydon commented Dec 21, 2023

There is no rendering built in for particles in flame_forge2d, so you have to handle the rendering of the particles yourself (Forge2D only handles their size and position). You can see an example of how it is done outside of Flutter and Flame here:
https://github.com/flame-engine/forge2d/blob/main/packages/forge2d/example/web/particles.dart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants