tyFlow Forum
add repulsion force to particle physics - Printable Version

+- tyFlow Forum (https://forum.tyflow.com)
+-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html)
+--- Forum: Feature Requests (https://forum.tyflow.com/forum-4.html)
+--- Thread: add repulsion force to particle physics (/thread-784.html)



add repulsion force to particle physics - Vance - 06-12-2019

particle physics does attraction and collision but it would be great to have repulsion also.  

I thought the attraction strength could use negative values but that is not the case.


RE: add repulsion force to particle physics - tyFlow - 06-12-2019

Collision is repulsion.


RE: add repulsion force to particle physics - Vance - 06-12-2019

(06-12-2019, 08:46 PM)tyFlow Wrote: Collision is repulsion.

i was thinking of something a little more like an opposite of attraction that doesn't involve actual contact


RE: add repulsion force to particle physics - tyFlow - 06-12-2019

The "contact" in Particle Physics collisions is illusory. All it's doing is applying a repulsive force when 2 particles are within range. The attraction does the opposite. The only reason they're separated is so you can apply both types of forces with different radii within the same operator, but they do the same things, just inverted. Just drop the collision force value way down if you want to lessen the "contact" effect.

You can also use the Flock operator for attraction/repulsion forces that are set to a certain velocity, rather than a function of the distance between particles.


RE: add repulsion force to particle physics - Vance - 06-12-2019

(06-12-2019, 09:12 PM)tyFlow Wrote: The "contact" in Particle Physics collisions is illusory. All it's doing is applying a repulsive force when 2 particles are within range. The attraction does the opposite. The only reason they're separated is so you can apply both types of forces with different radii within the same operator, but they do the same things, just inverted. Just drop the collision force value way down if you want to lessen the "contact" effect.

You can also use the Flock operator for attraction/repulsion forces that are set to a certain velocity, rather than a function of the distance between particles.

I'll try changing the collision strength to see if I can get it to do what I want.  

 I think I may be looking for something that is more like a raycast avoidance but for other particles.