Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Changing collision category only for some particles of the same emitter
#1
Hey there! Hope you are all doing well!



I am using Obi fluid 6.5. So If I need to change collision category for all particles of the same emitter I could do it with


Code:
if (emitter != null) emitter.SetFilterCategory(0);




My question is how to change collision category only for some particles of the same emitter? For example some particles collided with smt, then their collision category will be changed.



Is this possible? Thanks in advance!
Reply
#2
(30-12-2022, 12:01 AM)Rearden Wrote: Hey there! Hope you are all doing well!



I am using Obi fluid 6.5. So If I need to change collision category for all particles of the same emitter I could do it with


Code:
if (emitter != null) emitter.SetFilterCategory(0);




My question is how to change collision category only for some particles of the same emitter? For example some particles collided with smt, then their collision category will be changed.



Is this possible? Thanks in advance!

Hi!

Yes it’s possible, you can change any particle property individually using the particles API. See:
http://obi.virtualmethodstudio.com/manua...icles.html

Also see “collision filters” at the bottom of the following page to learn how to create your own filters:
http://obi.virtualmethodstudio.com/manua...sions.html

Cheers!
Reply
#3
Got it! Thank you for the response. Happy New Year!
Reply