05-03-2019, 04:14 PM
(This post was last modified: 05-03-2019, 04:19 PM by josemendez.)
(05-03-2019, 04:05 PM)Richard Wrote: I think you said obi cloth can move by vector, not transform. How can I move by vector on script?
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.