-
-
Notifications
You must be signed in to change notification settings - Fork 798
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
Fluid output #208
Comments
This is a theory similar to the one used in the sample: https://peeke.nl/simulating-blobs-of-fluid |
I would like to work on this issue but it would be so nice of you if you elaborate what specifically I have to do. |
Nice @ankitaugale23, I'd like to have particles that can act like fluid particles, creating an effect like the one in the sample linked in the issue description. Actually, when you enable collisions and gravity ( I think the problem is in the particles collision calculation when the gravity is applied but I'm not sure. |
Stale issue message |
Here's the PR! #5214.⚡ Sweep Free Trial: I used GPT-3.5 to create this ticket. You have 1 GPT-4 tickets left for the month and 0 for the day. For more GPT-4 tickets, visit our payment portal. Actions (click)
Step 1: 🔎 SearchingI found the following snippets in your repository. I will now analyze these snippets and come up with a plan. Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description.tsparticles/engine/scripts/install.js Lines 1 to 78 in dcae1ab
tsparticles/engine/src/Options/Interfaces/IOptions.ts Lines 1 to 142 in dcae1ab
I also found the following external resources that might be helpful:Summaries of links found in the content: https://codepen.io/matteobruni/pen/mdJYMQM: The page titled "Just a moment..." requires JavaScript and cookies to be enabled in order to continue. It does not provide any code snippets or information relevant to the problem mentioned by the user. Step 2: ⌨️ Coding
• Import the necessary dependencies. • Define the FluidPlugin class. • Implement the logic for the fluid-like movement in the FluidPlugin class. • Export the FluidPlugin class. Sandbox Execution Logs
• Import the FluidOptions interface. • Add a new property 'fluid' of type FluidOptions to the IOptions interface. Sandbox Execution Logs
• Define the FluidOptions interface. • Add properties to the FluidOptions interface that control the behavior of the fluid-like movement. • Export the FluidOptions interface. Sandbox Execution Logs
• Import the FluidPlugin. • Add the FluidPlugin to the list of installed plugins. Sandbox Execution Logs
Step 3: 🔁 Code ReviewHere are my self-reviews of my changes at Here is the 1st review Hi there, great start on the FluidPlugin implementation! However, there are a few changes that need to be made: I finished incorporating these changes. 🎉 Latest improvements to Sweep:
💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. |
I've seen this codepen https://codepen.io/matteobruni/pen/mdJYMQM and I think it's something portable here
This can be a plugin, having it's own fluid options, that can be enabled toggling a fluid-like movement instead of void-like movement.
Checklist
engine/src/Plugins/FluidPlugin.ts
✅ Commite15a569
Sandbox Execution Logs
engine/src/Options/Interfaces/IOptions.ts
✅ Commit4d3e7ec
Sandbox Execution Logs
engine/src/Options/Interfaces/FluidOptions.ts
✅ Commitf165f0f
Sandbox Execution Logs
engine/scripts/install.js
✅ Commit6a4c4a1
Sandbox Execution Logs
The text was updated successfully, but these errors were encountered: