Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  add vector to obi cloth
#4
(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.
Reply


Messages In This Thread
add vector to obi cloth - by Richard - 05-03-2019, 03:50 PM
RE: add vector to obi cloth - by josemendez - 05-03-2019, 04:00 PM
RE: add vector to obi cloth - by Richard - 05-03-2019, 04:05 PM
RE: add vector to obi cloth - by josemendez - 05-03-2019, 04:14 PM
RE: add vector to obi cloth - by Richard - 06-03-2019, 09:58 AM
RE: add vector to obi cloth - by josemendez - 06-03-2019, 11:57 AM