Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  add vector to obi cloth
#3
(05-03-2019, 04:00 PM)josemendez Wrote: The invMasses array contains floats (scalars). You cannot assign a vector to a scalar value, it does not make sense:
Code:
actor.invMasses[i] = new Vector3(0.0f, 0.05f, 0.0f);

Maybe you intended to use the "positions" array instead?

I think you said obi cloth can move by vector, not transform. How can I move by vector on script?
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