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