![]() |
Help Changing collision category only for some particles of the same emitter - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Fluid (https://obi.virtualmethodstudio.com/forum/forum-3.html) +--- Thread: Help Changing collision category only for some particles of the same emitter (/thread-3716.html) |
Changing collision category only for some particles of the same emitter - Rearden - 30-12-2022 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! RE: Changing collision category only for some particles of the same emitter - josemendez - 01-01-2023 (30-12-2022, 12:01 AM)Rearden Wrote: Hey there! Hope you are all doing well! Hi! Yes it’s possible, you can change any particle property individually using the particles API. See: http://obi.virtualmethodstudio.com/manual/6.3/scriptingparticles.html Also see “collision filters” at the bottom of the following page to learn how to create your own filters: http://obi.virtualmethodstudio.com/manual/6.3/scriptingcollisions.html Cheers! RE: Changing collision category only for some particles of the same emitter - Rearden - 01-01-2023 Got it! Thank you for the response. Happy New Year! |