[QUESTION] Moving mesh during physics simulation #263
Replies: 4 comments
-
Now I can deform the mesh using wp.launch. It's working well !!
But it doesn't seem to work with wp.sim.ModelBuilder(). I similarly used code to deform the mesh, but the mesh did not move.
warp/warp/examples/sim/example_cloth.py Lines 130 to 139 in 7de9179 How can I deform mesh in wp.sim.ModelBuilder() ? |
Beta Was this translation helpful? Give feedback.
-
Same problem. I do not know how to add the |
Beta Was this translation helpful? Give feedback.
-
Hi @SangHunHan92 and @biansy000,
For example, to deform the mesh from the cloth example, you could run a kernel that'd modify The example |
Beta Was this translation helpful? Give feedback.
-
Here is an example code I have written.
@christophercrouzet In the code, the collider is updated in each simulation step by updating |
Beta Was this translation helpful? Give feedback.
-
Thanks for great work !
I want to simulate a cloth for a moving object, exactly like this question.
#160
But I couldn't find updated + refit() in the link below:
https://github.com/NVIDIA/warp/blob/main/warp/sim/model.py#L256
But, I found simillar functions during search "refit":
warp/warp/types.py
Lines 2997 to 3004 in bfbd025
warp/warp/examples/core/example_mesh.py
Lines 116 to 129 in bfbd025
Has the function to update mesh been moved?
Also, if I combine this properly with the example below, can I get it to work as I intended?
https://github.com/NVIDIA/warp/blob/main/warp/examples/sim/example_cloth.py
Beta Was this translation helpful? Give feedback.
All reactions