Jump to content
Sign in to follow this  
jackassol

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×