Obi Official Forum

Full Version: Cloth position
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
(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,
(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!!