Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Cloth position
#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


Messages In This Thread
Cloth position - by yeyoya - 03-09-2020, 12:06 PM
RE: Cloth position - by josemendez - 03-09-2020, 12:22 PM
RE: Cloth position - by yeyoya - 03-09-2020, 02:13 PM