Pinning particles of cloth so they won't move

In 2.8 is was able to create a simple ‘flag pole’ using a tall static box and the pole, a cloth for the flag then used NxCloth::attachToShape(…) to attach the two together.
How can I achieve the same in 3.3? Is setting invMasses of the approp. particles to 0 an approach?

Turns out it’s fairly simple, I just misread the documentation :P
You simply set the PxClothParticle::invWeight of the desired cloth particle(s) to 0.0f before you call createCloth(…) and they’ll stay put in world space :)