Manually move Cloth vertices in Z after dynamic update

Hi guys.
Tearing my hair out here.
I want to restrict my interactive cloth in Z space.
I can do it on meshes but I’m having mega troubles with the interactiveCloth.

what I was thinking of doing is this:

  1. on start, record the vertices Z positions in an array.
  2. after update, merge the new position x and y with the old Z into array2.
  3. move all the vertices to array2 position.

Can’t seem to find any answers and the only thing about this in the manual is that you can do it :slight_smile:

Any help or info would be ace!

Thanks in advance!

Arvid Niklasson

I guess THAT was a tricky question. no wonder I havent found anything on it online.
Anyways, Looking into Uscript at the moment and I’m making some progress.
I’m still happy to hear any type of suggestions in C or java but it looks like Uscript might have some nice compounds for this.

Mega!

A