Jump to content
Sign in to follow this  
Nicolas90

POP Attract by points with different attraction forces?

Recommended Posts

Dear community,

I am working on a little particle system that I need some help with and I hope that you can help me out somehow:

I am emitting particles from points A. These particles are attracted by another pointcloud B via POP Attract, with the attraction type set to points. So far so good. My question is now: How can I vary the attraction force inside pointcloud B for each point? Is that possible? I've been looking into and reading the docs, of course, but all to no avail. Does anybody have an idea on how to solve this issue, meaning giving the points in pointcloud B varying attraction forces? Is there an attribute that I have to apply on pointcloud B, that POP attract could use?

 

Best wishes and merry christmas and Chanukka,

Nicolas

Share this post


Link to post
Share on other sites

In pop Attract node under force tab you have an option called use vex expression, there you can vary your force scale based on particle Id . like : 

forcescale*=fit01(rand(@id),0,1);

  • Like 1

Share this post


Link to post
Share on other sites

Hello Navneet,

thank you so much for your response. The knowledge that I can modify particles behavior inside the vex expressions field is helping a lot. However, what I would like to do is changing the particle behavior according to the point values inside the goal's point cloud. Would you or anyone have an idea on how to do that?

 

Best Nicolas

Share this post


Link to post
Share on other sites

You can use a pop stream and make a condition to make those particles do whatever you want. 

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  

×