cheind / pytorch-blender

:sweat_drops: Seamless, distributed, real-time integration of Blender into PyTorch data pipelines
MIT License
562 stars 44 forks source link

collision between the cloth and rigid body not working #14

Closed fan6zh closed 3 years ago

fan6zh commented 3 years ago

Hi, thanks for sharing the very interesting work!

I am following the control example for reinforcement learning. I created my own blend file, which includes the collision between the cloth and rigid body. It works fine if I open it in Blender directly. But with pytorch-blender, the collision is not working. I am wondering if you have any advice on that.

Thanks in advance

fan6zh commented 3 years ago

Hi, following last question, I use the keyframe_insert(data_path='location') to move the rigid body to interact with the cloth. But it seems env.step() does not work with keyframe. So basically I am just setting location for rigid body at each step, and that is why the collision does not work. So any advice on how to move the rigid body at each step? thanks