Swap rbd during simulation

   1834   2   2
User Avatar
Member
25 posts
Joined: 4月 2015
Offline
Hi,
Is it possible to swap rbd simulated object to different one while simulating? For example bunch of simulated boxes changes at random to spheres which inherit position, rotation and continue to simulate.
User Avatar
スタッフ
747 posts
Joined: 10月 2012
Offline
I think you can do this by first replacing the packed prims' contents with the new shape(e.g. with the Pack Inject SOP, or by copying the point attribs over to new packed prims) and then resetting the 'id' point attrib to -1 which will cause the solver to re-import the shape. You might also set 'computecom' and/or 'computemass' to 1 if you want those properties to be recomputed for the new geometry.
User Avatar
Member
25 posts
Joined: 4月 2015
Offline
Hi,
thanks, it worked! I'm attaching hip if anyone interested.
Cheers

Attachments:
rbd_swap_Test_01.hiplc (579.5 KB)

  • Quick Links