Modifying PxCloth particle positions at runtime [solved]

Hi all,
I have been using PhysX for cloth simulation. In v 2.8.4, we had NxCloth::attachVertexToGlobalPosition function that allowed us to change particle positions dynamically. I am looking for something similar for the latest PhysX v 3.3.1? I cannot find anything similar in the documentations. So my question is how do I go about changing my PxCloth particle positions dynamically? Lets say I want to change the positions of the pinned cloth vertices, how do I do that now?

Thanks,
Mobeen

Nevermind, I think I have got it working now. I have used the PxCloth::setParticles method. This requires two set of particles (old and new). I modify the new set only and pass it to this function and the particle positions are modified.