Jump to content

Bullet packed primitive - inherit color on collision


groblus

Recommended Posts

Hi,

I'm looking for a way of inheriting color on collision while using bullet and packed primitives.
Let's say I have an object colored white - and I would like every single object that it touched to be colored white as well. Prefereabli those new "infected" object would  infect others on collision.
I did some search, found some topics on POPs using  "hit count" - but nothing regarding bullet.

Could you just point me in the right direction? Some use of collision data?

Regards

 

Link to comment
Share on other sites

You can link up pop collision into the presolve of the rbd solver, set collision target to DOPS and DOP objects to *rbd* (if you haven't renamed your packed objects). By messing around with the default particle size you can get it to detect collisions for RBDs. It gives you all the hit attributes, as exactly how to use that for the color changing..... I'm not sure!

Link to comment
Share on other sites

Thanks for some tips pisces and Amaya.

I'll have to explore both ways but I thing I'll strart with the impact data route since it promises having real collision data (no particle proxy). If I manage to get some results - I'll try to answer my own question.

Regards,
groblus

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...