Jump to content

Group particles from flipfluidobject


Recommended Posts

Hi, i was trying to group particles from a flipfluidobject, but without luck.

My goal is to add to differnet gravities with 2 Popforces +  2 PopGroups.

The particles from the left half of my flipfluidobject should have a positive gravity and the right part should have a negative grafity.

Does anyone has an solution for this?

 

best

force_Group.hip

Link to comment
Share on other sites

Hey!

This can be done by hooking up a Pop Force into the "Particle velocity" input of the FLIP Solver. 

Let's assume the left part of your fluid is on the  Z+ side and the right part is on the Z- side. Inside the Pop Force, you can check the box that under force that says "Use VEXpressions" and enter something like this: 

if(@P.z<0){
    force.y = -9.8;
} else {
    force.y = 9.8;
}

This will cause all the points on the right side to fall, while the left half rises up.

Hope this helps!

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...