NVIDIA / warp

A Python framework for high performance GPU simulation and graphics
https://nvidia.github.io/warp/
Other
1.75k stars 148 forks source link

attach some cloth vertices to moving mesh #161

Open cyanzhao42 opened 6 months ago

cyanzhao42 commented 6 months ago

Hi, would it be possible to attach some cloth vertices to some moving vertices of a mesh?

It would be similar to "fix_left" in add_cloth_grid, but for some vertices give a cloth mesh, and attach to a moving point.

Thanks.

mmacklin commented 5 months ago

Hi @cyanzhao42 , generally you can kinematically control any particles by setting their mass/invmass to zero and then moving them to the desired location before each simulation step (you can launch a kernel to update the fixed particles as desired).

Hope that helps.

Cheers, Miles