Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Cloth position
#1
Hello,

Is it possible to get the cloth position within the solver?
I'm spawning flying balloons and I would like to know their position.

Many thanks,

Oliver
Reply
#2
(03-09-2020, 12:06 PM)yeyoya Wrote: Hello,

Is it possible to get the cloth position within the solver?
I'm spawning flying balloons and I would like to know their position.

Many thanks,

Oliver

There's no uniquely defined "position" for a deformable object, like there is for a rigid object. It just does not make sense, as the object can stretch/squash/fold/tear into pieces, etc.

Best you can do is get its center of mass, you can use cloth.GetMass(out Vector3 com) for this.

cheers,
Reply
#3
(03-09-2020, 12:22 PM)josemendez Wrote: There's no uniquely defined "position" for a deformable object, like there is for a rigid object. It just does not make sense, as the object can stretch/squash/fold/tear into pieces, etc.

Best you can do is get its center of mass, you can use cloth.GetMass(out Vector3 com) for this.

cheers,

Thank you very much Jose!!
This what I was looking for!!
Reply