Hi, I'm currently working on a scene where the oil spill on an object. I need to control the slip field so I browse through any video that I can find. I found one pretty interesting, it's a flip test made by Tim Woods on Vimeo. in the comment section, he explained using DotProduct in VOP in DOP level to create Curvature Attraction.
This is his explaination: Curvature Attraction is based inside the DOP network as a SolverSOP piped into the Particle Velocity of the Flip Solver. At it's basic level it measures the surface using DotProduct against a vector of 0,1,0. You can use this to mask a test that finds closest mesh position weighted by distance. I also made a mix/slerp the cross product of the surface normal (makes a downward flow normal). This helps keep the flip moving, otherwise in some cases it can slow down when you start to add upward vel to it.
Can someone help me on this part, I don't know how I should wire the DotProduct also how to create the attraction from it. I would be appreciate if someone could give me a hand in this. Thanks in advance.