29-03-2021, 09:59 AM
(This post was last modified: 29-03-2021, 10:00 AM by josemendez.)
(27-03-2021, 04:24 AM)akayashi1212 Wrote: thanks you for reply! have any function or parameter in solver/actor to do that? can you suggest me one?
You have Vector3.Distance (https://docs.unity3d.com/ScriptReference...tance.html), which will return the distance between two points.
One of the points should be your user's finger position (Input.mousePosition, or other depending on which input system you're using), and the other point should be a particle position. You can get these from Obi's particle API: http://obi.virtualmethodstudio.com/tutor...icles.html
You can then just get the distance from the user's finger to all particles, and use that as input to your support function.