29-03-2021, 11:35 AM
(This post was last modified: 29-03-2021, 02:01 PM by akayashi1212.)
(29-03-2021, 09:59 AM)josemendez Wrote: You have Vector3.Distance (https://docs.unity3d.com/ScriptReference...tance.html), which will return the distance between two points.thank you! but that was not what i mean. i can get all particles i want in finger shape, but i don't know how to make it look like finger shape. when i change Y position of it, it look like video. When i use Velocity/externalForce, all of particle down. I don't want change the position of another particles i'm not select like video. And the cloth is more elastic, how to decrease it ?
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.
video: https://www.youtube.com/watch?v=CAEbkiKxaZs
I want make it look like the video, and i know obi cloth can do it. But i don't understand Obi Cloth's API.
video: https://www.youtube.com/watch?v=c5tGB6k6240