03-09-2020, 12:22 PM
(This post was last modified: 03-09-2020, 12:23 PM by josemendez.)
(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,