06-03-2019, 09:58 AM
(05-03-2019, 04:14 PM)josemendez Wrote: By changing its particles' velocities or positions. For that you have to use either the "positions" or "velocities" arrays.
But trying to assign a vector to a scalar value does not make sense. which is what your code does. A float is a single scalar value, and a Vector3 is a point/direction in 3D space, composed of 3 scalars. Read more on data types, as it seems to me you're still hoping for things to work out of luck instead of trying to understand what you're doing and why.
I thought that it is specific problem of obi cloth, because tutorial(http://obi.virtualmethodstudio.com/tutor...icles.html) writes "velocities" I cannot find out in document , not velocity. If that is a trivial question, I say sorry.
"positions" or "velocities" arrays means putting all particle in an array and multiply by transform.position or vector3.velocity?