Jump to content

collision between particles who have different pscales


GenesisCry

Recommended Posts

Hi guys, 

 

I'm trying to get bubbles to collide with each other but can't seem to find the solution yet.

I'm using points that are emitted upwards and assign a random pscale value to each new point.

I'd like points to change colors when they are too close to each other, that way I can check if the setup works.

So when 2 points are close to each I'd like to check if the distance between them is not smaller than the radius of the point and the radius of the closest point.

If it is, then the points need to turn red.

For now, all my points turn red, but I think it's because I can't find a way to access the closest's point pscale value to compare it with the distance.

Can someone guide me on how to approach this kind of issue? 

I tried to use pcfind but that doesn't seem to work too -_-.

Bubbles_WIP.hipnc

  • 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...